Make NTP checks usable with '--check'

As those task are only reading the installed packages and their output
is required in later tasks it is safe to run them also in check mode.
pull/1115/head
Daniel Marks 2016-11-23 13:52:34 +01:00
parent c8c927faeb
commit 9cfd0f4118
3 changed files with 3 additions and 0 deletions

View File

@ -3,4 +3,5 @@
command: rpm -q chrony
register: ntp_pkg_query
ignore_errors: true
always_run: true
changed_when: false

View File

@ -3,5 +3,6 @@
command: dpkg -s ntp
register: ntp_pkg_query
ignore_errors: true
always_run: true
changed_when: false
when: ansible_os_family == 'Debian'

View File

@ -3,5 +3,6 @@
command: rpm -q ntp
register: ntp_pkg_query
ignore_errors: true
always_run: true
changed_when: false
when: ansible_os_family == 'RedHat'