]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Restart cachefilesd in new kernel 594/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 2 Dec 2020 16:16:05 +0000 (11:16 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 2 Dec 2020 16:16:05 +0000 (11:16 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/cachefilesd.yaml

index 382df59e19e6eb74de3feb30b040b27e2eb19e32..7101569c9fee9d6516b71b4f12f428e35f3740f3 100644 (file)
@@ -13,3 +13,9 @@
   service:
     name: cachefilesd
     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 cachefilesd
+  shell: systemctl restart cachefilesd
+  when: "'ceph' in ansible_kernel"