忽略文件不存在 (#1206)

v3.3
WeiLai 2022-12-13 19:31:02 +08:00 committed by gjmzj
parent 86412d88e7
commit b278aa1ef4
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