Skip to content

Commit

Permalink
fixed issue #113 xml-encoding error handling for grep (exit code 1 if…
Browse files Browse the repository at this point in the history
… not found)
  • Loading branch information
zerwes committed Dec 17, 2024
1 parent 42d37e7 commit f88ce8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@
delegate_to: localhost
ansible.builtin.command: grep -q "<?xml version='1.0' encoding='UTF-8'?>" {{ local_config_path }}
register: _grep_xml_encoding
failed_when: _grep_xml_encoding.rc > 2
changed_when: false

- name: fix encoding of xml # noqa no-changed-when
Expand Down

0 comments on commit f88ce8b

Please sign in to comment.