Add failed_when to deploy calico operator
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user