忽略文件不存在 (#1206)

pull/1215/head
WeiLai 2022-12-13 19:31:02 +08:00 committed by GitHub
parent 5b58cd0ea6
commit 67a70a6bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@
regexp: '{{ harbor_hostname }}'
line: "{{ groups['harbor'][0] }} {{ harbor_hostname }}"
when: 'ansible_distribution in ["Ubuntu","Debian"]'
ignore_errors: true
- name: Adding cloud-init hosts template (redhat) entry for the HARBOR DOMAIN
lineinfile:
@ -101,3 +102,4 @@
regexp: '{{ harbor_hostname }}'
line: "{{ groups['harbor'][0] }} {{ harbor_hostname }}"
when: 'ansible_distribution in ["CentOS","RedHat","Amazon","Aliyun"]'
ignore_errors: true