mirror of https://github.com/ceph/ceph-ansible.git
update: ignore linter errors on ceph-exporter systemd tasks
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>pull/7510/head
parent
50216dc12b
commit
12573bc97a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue