Skip to content

Commit db488e5

Browse files
committed
Fix repeated configure-aio-resources runs
1 parent 5b92e4a commit db488e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etc/kayobe/ansible/configure-aio-resources.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
# and removed the IP
4343
ansible.builtin.command: ip a add 10.0.2.1/24 dev breth1
4444
register: result
45-
failed_when: 'result.rc != 0 and "RTNETLINK answers: File exists" not in result.stderr'
45+
failed_when:
46+
- '"RTNETLINK answers: File exists" not in result.stderr'
47+
- '"Address already assigned" not in result.stderr'
48+
- result.rc != 0
4649
changed_when: result.rc == 0
4750
become: true
4851

0 commit comments

Comments
 (0)