]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container: osd remove run_once
authorSébastien Han <seb@redhat.com>
Wed, 14 Feb 2018 00:44:18 +0000 (01:44 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 14 Feb 2018 01:01:29 +0000 (02:01 +0100)
When used along with  delegate, run_once does not belong well. Thus,
using | last always brings the desired result.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-defaults/handlers/main.yml

index 3d073ace0786ad5075423e83940f5e5fbe5aad8c..b56c5d6a1092e6ee113b54c88cc64a9afdbd6cbd 100644 (file)
@@ -28,7 +28,6 @@
     - inventory_hostname in play_hosts
     - mon_socket_stat.rc == 0
   with_items: "{{ groups[mon_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph mon daemon(s) - container
@@ -43,7 +42,6 @@
     - inventory_hostname in play_hosts
     - ceph_mon_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[mon_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 # This does not just restart OSDs but everything else too. Unfortunately
@@ -76,7 +74,6 @@
     # See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below
     - inventory_hostname in play_hosts
   with_items: "{{ groups[osd_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph osds daemon(s) - container
@@ -94,7 +91,6 @@
     # See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below
     - inventory_hostname in play_hosts
   with_items: "{{ groups[osd_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: copy mds restart script
     - inventory_hostname in play_hosts
     - mds_socket_stat.rc == 0
   with_items: "{{ groups[mds_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph mds daemon(s) - container
     - inventory_hostname in play_hosts
     - ceph_mds_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[mds_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: copy rgw restart script
     - inventory_hostname in play_hosts
     - rgw_socket_stat.rc == 0
   with_items: "{{ groups[rgw_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph rgw daemon(s) - container
     - inventory_hostname in play_hosts
     - ceph_rgw_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[rgw_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: copy nfs restart script
     - inventory_hostname in play_hosts
     - nfs_socket_stat.rc == 0
   with_items: "{{ groups[nfs_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph nfs daemon(s) - container
     - inventory_hostname in play_hosts
     - ceph_nfs_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[nfs_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: copy rbd mirror restart script
     - inventory_hostname in play_hosts
     - rbd_mirror_socket_stat.rc == 0
   with_items: "{{ groups[rbdmirror_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph rbd mirror daemon(s) - container
     - inventory_hostname in play_hosts
     - ceph_rbd_mirror_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[rbdmirror_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: copy mgr restart script
     - inventory_hostname in play_hosts
     - mgr_socket_stat.rc == 0
   with_items: "{{ groups[mgr_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"
 
 - name: restart ceph mgr daemon(s) - container
     - inventory_hostname in play_hosts
     - ceph_mgr_container_stat.get('stdout_lines', [])|length != 0
   with_items: "{{ groups[mgr_group_name] }}"
-  run_once: true
   delegate_to: "{{ item }}"