Skip to content

Commit

Permalink
implement solution described in #122
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-ling committed Mar 11, 2024
1 parent ca381db commit ca54c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
block:
- name: Check if the key is already present in the DNSdist configuration file
ansible.builtin.shell: |
set -o pipefail && fgrep setKey "{{ default_dnsdist_config_location }}" | sed 's/setKey("\(.*\)")/\1/'
set -o pipefail && grep '^\s*setKey' "{{ default_dnsdist_config_location }}" | sed 's/.*setKey("\(.*\)").*/\1/'
register: dnsdist_grepkey_cmd
changed_when: false
failed_when: false
Expand Down

0 comments on commit ca54c9f

Please sign in to comment.