From: Daniel Marks Date: Wed, 23 Nov 2016 12:52:34 +0000 (+0100) Subject: Make NTP checks usable with '--check' X-Git-Tag: v2.1.0~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1115%2Fhead;p=ceph-ansible.git 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. --- diff --git a/roles/ceph-common/tasks/checks/check_ntp_atomic.yml b/roles/ceph-common/tasks/checks/check_ntp_atomic.yml index 15a5b2d13..32050835e 100644 --- a/roles/ceph-common/tasks/checks/check_ntp_atomic.yml +++ b/roles/ceph-common/tasks/checks/check_ntp_atomic.yml @@ -3,4 +3,5 @@ command: rpm -q chrony register: ntp_pkg_query ignore_errors: true + always_run: true changed_when: false diff --git a/roles/ceph-common/tasks/checks/check_ntp_debian.yml b/roles/ceph-common/tasks/checks/check_ntp_debian.yml index 21d12163a..dc17abce0 100644 --- a/roles/ceph-common/tasks/checks/check_ntp_debian.yml +++ b/roles/ceph-common/tasks/checks/check_ntp_debian.yml @@ -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' diff --git a/roles/ceph-common/tasks/checks/check_ntp_redhat.yml b/roles/ceph-common/tasks/checks/check_ntp_redhat.yml index b55a0d3c9..51f64400e 100644 --- a/roles/ceph-common/tasks/checks/check_ntp_redhat.yml +++ b/roles/ceph-common/tasks/checks/check_ntp_redhat.yml @@ -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'