From 4902220fac52bbe22d13e62cdb454b41bb76a23e Mon Sep 17 00:00:00 2001 From: romeroalx Date: Tue, 8 Oct 2024 01:42:31 +0200 Subject: [PATCH] allow different output for version in recent pdns releases --- tasks/inspect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/inspect.yml b/tasks/inspect.yml index 98f74d3..9e8286c 100644 --- a/tasks/inspect.yml +++ b/tasks/inspect.yml @@ -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