Skip to content

Commit

Permalink
Merge pull request #73 from pieterlexis/best-hosting-fix-check-mode
Browse files Browse the repository at this point in the history
Fix check mode
  • Loading branch information
pieterlexis authored Jun 17, 2021
2 parents ce4ac22 + b152266 commit 899931c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/install-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
- name: Set pdns version
set_fact:
_pdns_rec_version: "{{ _pdns_rec_ver_output['stdout'] | regex_replace('-[.\\d\\w]+$', '') }}"
when: not ansible_check_mode
4 changes: 4 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ default_pdns_rec_service_overrides: >-
} if _pdns_rec_version is version('4.3', operator='ge')
else {}
}}
# Default value intended to be used during check mode, when proper version
# detection does not run.
_pdns_rec_version: "{{ pdns_rec_package_version if pdns_rec_package_version != '' else 0 }}"

0 comments on commit 899931c

Please sign in to comment.