Update UFW rc-update changed condition
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
ansible.builtin.command:
|
||||
cmd: rc-update add ufw default
|
||||
register: rc_update_result
|
||||
changed_when: >-
|
||||
changed_when: >- # ">- : transform multiple lines into one line"
|
||||
'already' not in rc_update_result.stdout
|
||||
and 'already' not in rc_update_result.stderr
|
||||
failed_when: rc_update_result.rc != 0
|
||||
|
||||
Reference in New Issue
Block a user