mirror of https://github.com/ceph/ceph-ansible.git
systemd: remove changed_when: false
When using a module there is no need to apply this Ansible option. The
module will handle the idempotency on its own. So the module decides
wether or not the task has changed during the execution.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f623997271
)
# Conflicts:
# roles/ceph-iscsi-gw/tasks/container/containerized.yml
pull/2834/head
parent
89945f8d77
commit
863e99ea32
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
- name: generate systemd unit files for tcmu-runner, rbd-target-api and rbd-target-gw
|
||||||
|
become: true
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/{{ item }}.service.j2"
|
||||||
|
dest: /etc/systemd/system/{{ item }}.service
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
mode: "0644"
|
||||||
|
with_items:
|
||||||
|
- tcmu-runner
|
||||||
|
- rbd-target-gw
|
||||||
|
- rbd-target-api
|
||||||
|
notify:
|
||||||
|
- restart ceph {{ item }}
|
||||||
|
|
||||||
|
- name: systemd start tcmu-runner, rbd-target-api and rbd-target-gw containers
|
||||||
|
systemd:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
with_items:
|
||||||
|
- tcmu-runner
|
||||||
|
- rbd-target-gw
|
||||||
|
- rbd-target-api
|
|
@ -62,7 +62,6 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: wait for mds socket to exist
|
- name: wait for mds socket to exist
|
||||||
command: "{{ docker_exec_cmd }} sh -c 'stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok || stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_fqdn }}.asok'"
|
command: "{{ docker_exec_cmd }} sh -c 'stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok || stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_fqdn }}.asok'"
|
||||||
|
|
|
@ -16,4 +16,3 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
changed_when: false
|
|
||||||
|
|
|
@ -57,4 +57,3 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
changed_when: false
|
|
||||||
|
|
|
@ -17,4 +17,3 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
changed_when: false
|
|
||||||
|
|
|
@ -30,4 +30,3 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
changed_when: false
|
|
||||||
|
|
Loading…
Reference in New Issue