update: ignore linter errors on ceph-exporter systemd tasks

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
pull/7510/head
Guillaume Abrioux 2024-03-12 00:38:19 +01:00
parent 50216dc12b
commit 12573bc97a
1 changed files with 2 additions and 2 deletions

View File

@ -1169,14 +1169,14 @@
ansible.builtin.meta: end_play
when: not containerized_deployment | bool
- name: Stop the ceph-exporter service
- name: Stop the ceph-exporter service # noqa: ignore-errors
ansible.builtin.systemd:
name: "{{ 'ceph-exporter@' + ansible_facts['hostname'] if containerized_deployment | bool else 'ceph-exporter.service' }}"
state: stopped
ignore_errors: true
# it needs to be done in a separate task otherwise the stop just before doesn't work.
- name: Mask and disable the ceph-exporter service
- name: Mask and disable the ceph-exporter service # noqa: ignore-errors
ansible.builtin.systemd:
name: "{{ 'ceph-exporter@' + ansible_facts['hostname'] if containerized_deployment | bool else 'ceph-exporter.service' }}"
enabled: false