Skip to content

Commit

Permalink
allow different output for version in recent pdns releases
Browse files Browse the repository at this point in the history
  • Loading branch information
romeroalx committed Oct 8, 2024
1 parent 8d91b71 commit 4902220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/inspect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: Obtain the version of the running PowerDNS instance
shell: |
pdns_server --version 2>&1 | awk '/PowerDNS Authoritative/{print $7}'
pdns_server --version 2>&1 | grep -o "PowerDNS Authoritative Server.*" | awk '{print $4}'
register: _pdns_version
check_mode: no
changed_when: False
Expand Down

0 comments on commit 4902220

Please sign in to comment.