]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
all: Ignore more warnings about systemd failing to control init scripts 580/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 15 Jul 2020 15:05:02 +0000 (11:05 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 15 Jul 2020 15:10:15 +0000 (11:10 -0400)
Follow-up to https://github.com/ceph/ceph-cm-ansible/pull/578

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/handlers/main.yml
roles/testnode/handlers/main.yml

index e2563efc759b97da4a0e3fe6e9255de276da5321..30e2a52dab0adfb5397271c8ec761248f340c028 100644 (file)
@@ -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 }}"
index e3a24c6d301b1a2c2dec2936fe81f8e17e2dba46..e820eb91b458817463871e6293d8c50b91ca9e66 100644 (file)
@@ -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:
     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 }}"