From 9cfd0f41188cb12203f7a72e54117b50022c0fe9 Mon Sep 17 00:00:00 2001 From: Daniel Marks Date: Wed, 23 Nov 2016 13:52:34 +0100 Subject: [PATCH] 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. --- roles/ceph-common/tasks/checks/check_ntp_atomic.yml | 1 + roles/ceph-common/tasks/checks/check_ntp_debian.yml | 1 + roles/ceph-common/tasks/checks/check_ntp_redhat.yml | 1 + 3 files changed, 3 insertions(+) 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' -- 2.47.3