From: David Galloway Date: Wed, 15 Jul 2020 15:05:02 +0000 (-0400) Subject: all: Ignore more warnings about systemd failing to control init scripts X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6f12cc125f33ae283c0da2d17c69d1e4b5a35623;p=ceph-cm-ansible.git all: Ignore more warnings about systemd failing to control init scripts Follow-up to https://github.com/ceph/ceph-cm-ansible/pull/578 Signed-off-by: David Galloway --- diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index e2563ef..30e2a52 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -3,3 +3,5 @@ service: name: "{{ nrpe_service_name }}" state: restarted + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}" diff --git a/roles/testnode/handlers/main.yml b/roles/testnode/handlers/main.yml index e3a24c6..e820eb9 100644 --- a/roles/testnode/handlers/main.yml +++ b/roles/testnode/handlers/main.yml @@ -1,13 +1,17 @@ --- - name: restart ntp service: - name: "{{ ntp_service_name }}" + name: "{{ ntp_service_name }}" state: restarted + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}" - name: restart ssh service: name: "{{ ssh_service_name }}" - state: restarted + state: restarted + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}" - name: start rpcbind service: @@ -15,13 +19,19 @@ state: started enabled: yes when: start_rpcbind + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}" - name: restart nfs-server service: name: "{{ nfs_service }}" state: restarted + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}" - name: restart cron service: name: cron state: restarted + # There's an issue with ansible<=2.9 and our custom built kernels (5.8 as of this commit) where the service and systemd modules don't have backwards compatibility with init scripts + ignore_errors: "{{ 'ceph' in ansible_kernel }}"