Add failed_when to deploy calico operator
This commit is contained in:
parent
f50e3ac33c
commit
a92409c56f
@ -3,6 +3,8 @@
|
|||||||
register: command
|
register: command
|
||||||
changed_when: "'created' in command.stdout"
|
changed_when: "'created' in command.stdout"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
failed_when:
|
||||||
|
- "command.rc == 1 and 'AlreadyExists' not in command.stderr"
|
||||||
|
|
||||||
- name: Deploy calico ressource template
|
- name: Deploy calico ressource template
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user