]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
drop variables from 'hosts' key
authorGuillaume Abrioux <gabrioux@ibm.com>
Mon, 12 Feb 2024 23:48:13 +0000 (00:48 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 14 Feb 2024 08:54:13 +0000 (09:54 +0100)
The linter complains about that.
It doesn't work anyway so it doesn't make sense to leave these variables
here.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
infrastructure-playbooks/shrink-mds.yml
infrastructure-playbooks/shrink-mgr.yml
infrastructure-playbooks/shrink-mon.yml
infrastructure-playbooks/shrink-osd.yml
infrastructure-playbooks/shrink-rbdmirror.yml

index 296ef52f1f90beddd8a4e69b54fa48eb22f76245..04b8e1daa8db2aed788bb69efd4fdfcbb9c04a96 100644 (file)
@@ -24,7 +24,7 @@
         tasks_from: container_binary
 
 - name: perform checks, remove mds and print cluster health
-  hosts: "{{ groups[mon_group_name][0] }}"
+  hosts: mons[0]
   become: true
   vars_prompt:
     - name: ireallymeanit
   post_tasks:
     - name: show ceph health
       command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s"
-      changed_when: false
\ No newline at end of file
+      changed_when: false
index 66745f7c607a461395a08de1a7b09471f81e8086..378ab661a43bd10ec74c953925cb4732a90fd028 100644 (file)
@@ -21,7 +21,7 @@
         msg: gather facts on all Ceph hosts for following reference
 
 - name: confirm if user really meant to remove manager from the ceph cluster
-  hosts: "{{ groups[mon_group_name][0] }}"
+  hosts: mons[0]
   become: true
   vars_prompt:
     - name: ireallymeanit
   post_tasks:
     - name: show ceph health
       command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s"
-      changed_when: false
\ No newline at end of file
+      changed_when: false
index 05d6c2be543e1483cf028d85ec5a0e2ee864f623..1bf1f7c46a15cd7a00ffb84128779d1313be8dc9 100644 (file)
@@ -22,7 +22,7 @@
     - debug: msg="gather facts on all Ceph hosts for following reference"
 
 - name: confirm whether user really meant to remove monitor from the ceph cluster
-  hosts: "{{ groups[mon_group_name][0] }}"
+  hosts: mons[0]
   become: true
   vars_prompt:
     - name: ireallymeanit
     - name: show ceph mon status
       command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} mon stat"
       delegate_to: "{{ mon_host }}"
-      changed_when: false
\ No newline at end of file
+      changed_when: false
index 2d3f3639fdf6e07f0f9e6c22c83bdb881a372337..09573da8bc2519e3ae564545b66fbeac1f74c0c9 100644 (file)
@@ -14,8 +14,8 @@
 - name: gather facts and check the init system
 
   hosts:
-    - "{{ mon_group_name|default('mons') }}"
-    - "{{ osd_group_name|default('osds') }}"
+    - mons
+    - osds
 
   become: True
   tasks:
@@ -23,7 +23,7 @@
 
 - name: confirm whether user really meant to remove osd(s) from the cluster
 
-  hosts: "{{ groups[mon_group_name][0] }}"
+  hosts: mons[0]
 
   become: true
 
index db7cc3a213c810c32ec875fa038a5507b558039a..79f8327d0c60ec90f9f0c7dc5e9633cde2e1fe02 100644 (file)
@@ -13,8 +13,8 @@
 
 - name: gather facts and check the init system
   hosts:
-    - "{{ mon_group_name|default('mons') }}"
-    - "{{ mon_group_name|default('rbdmirrors') }}"
+    - mons
+    - rbdmirrors
   become: true
   tasks:
     - debug:
@@ -22,7 +22,7 @@
 
 - name: confirm whether user really meant to remove rbd mirror from the ceph
         cluster
-  hosts: "{{ groups[mon_group_name][0] }}"
+  hosts: mons[0]
   become: true
   vars_prompt:
     - name: ireallymeanit