Add failed_when to deploy calico operator

role_nftables
Ruakij 2 years ago
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…
Cancel
Save