From: David Galloway Date: Wed, 17 Jun 2020 14:50:46 +0000 (-0400) Subject: all: Ignore warnings about systemd failing to control init scripts X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=264d3c7ad7dccd663a08ebe3c8119fdf5a71bc86;p=ceph-cm-ansible.git all: Ignore warnings about systemd failing to control init scripts Using the systemd ansible module doesn't help either https://github.com/ansible/ansible/issues/36585 https://github.com/ansible/ansible/issues/22171 Signed-off-by: David Galloway --- diff --git a/roles/common/tasks/nagios.yml b/roles/common/tasks/nagios.yml index fa11678..cc926bf 100644 --- a/roles/common/tasks/nagios.yml +++ b/roles/common/tasks/nagios.yml @@ -112,3 +112,5 @@ name: "{{ nrpe_service_name }}" enabled: yes state: started + # 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/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index 8bf81a2..1f6f01f 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -74,3 +74,5 @@ service: name: apache2 state: stopped + # 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/tasks/ntp.yml b/roles/testnode/tasks/ntp.yml index aa6982b..9ec8f40 100644 --- a/roles/testnode/tasks/ntp.yml +++ b/roles/testnode/tasks/ntp.yml @@ -52,3 +52,5 @@ name: "{{ntp_service_name}}" enabled: yes state: started + # 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 }}"