]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
main: add tags on each play guits-single2multisite 6121/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 10 Dec 2020 17:08:24 +0000 (18:08 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 10 Dec 2020 17:22:12 +0000 (18:22 +0100)
wip

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
site-container.yml.sample
site.yml.sample

index 0106654b86cd84658146c4e6b91ea6406073d455..b85f609e31a47f378dfd64837e3b43e626295e5e 100644 (file)
@@ -80,6 +80,7 @@
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mons
+  tags: mons
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mgrs
+  tags: mgrs
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: osds
+  tags: osds
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mdss
+  tags: mdss
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rgws
+  tags: rgws
   become: True
   gather_facts: false
   any_errors_fatal: true
     - import_role:
         name: ceph-facts
       tags: ['ceph_update_config']
+    - name: multisite specific
+      when: rgw_multisite | bool
+      block:
+        - import_role:
+            name: ceph-validate
+        - import_role:
+            name: ceph-infra
     - import_role:
         name: ceph-handler
       tags: ['ceph_update_config']
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: clients
+  tags: clients
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: nfss
+  tags: nfss
   become: True
   gather_facts: false
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rbdmirrors
+  tags: rbdmirrors
   become: True
   gather_facts: false
   any_errors_fatal: true
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
-- hosts:
-    - iscsigws
+- hosts: iscsigws
+  tags: iscsigws
   gather_facts: false
   any_errors_fatal: true
   become: True
index efa432990985195bbd3c94964260ba4bd4e161fa..2557c92e9a38fc3f4906f3885cf37186089d4d37 100644 (file)
@@ -63,6 +63,7 @@
         name: ceph-common
 
 - hosts: mons
+  tags: mons
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mgrs
+  tags: mgrs
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: osds
+  tags: osds
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: mdss
+  tags: mdss
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rgws
+  tags: rgws
   gather_facts: false
   become: True
   any_errors_fatal: true
     - import_role:
         name: ceph-facts
       tags: ['ceph_update_config']
+    - name: multisite specific
+      when: rgw_multisite | bool
+      block:
+        - import_role:
+            name: ceph-validate
+        - import_role:
+            name: ceph-infra
     - import_role:
         name: ceph-handler
       tags: ['ceph_update_config']
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: clients
+  tags: clients
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: nfss
+  tags: nfss
   gather_facts: false
   become: True
   any_errors_fatal: true
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
 - hosts: rbdmirrors
+  tags: rbdmirrors
   gather_facts: false
   become: True
   any_errors_fatal: true
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
-- hosts:
-    - iscsigws
+- hosts: iscsigws
+  tags: iscsigws
   gather_facts: false
   become: True
   any_errors_fatal: true
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
-- hosts:
-    - rgwloadbalancers
+- hosts: rgwloadbalancers
+  tags: rgwloadbalancers
   gather_facts: false
   become: True
   any_errors_fatal: true