purge-docker-cluster: do not set group names vars at playbook level

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1349/head
Andrew Schoen 2017-03-07 13:23:40 -06:00
parent 46f26bec13
commit 7289acb6b3
1 changed files with 18 additions and 62 deletions

View File

@ -46,11 +46,8 @@
- name: purge ceph mds cluster - name: purge ceph mds cluster
vars:
mds_group_name: mdss
hosts: hosts:
- "{{ mds_group_name }}" - "{{ mds_group_name|default('mdss') }}"
become: true become: true
@ -93,11 +90,8 @@
- name: purge ceph rgw cluster - name: purge ceph rgw cluster
vars:
rgw_group_name: rgws
hosts: hosts:
- "{{ rgw_group_name }}" - "{{ rgw_group_name|default('rgws') }}"
become: true become: true
@ -140,11 +134,8 @@
- name: purge ceph rbd-mirror cluster - name: purge ceph rbd-mirror cluster
vars:
rbdmirror_group_name: rbd-mirrors
hosts: hosts:
- "{{ rbdmirror_group_name }}" - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
become: true become: true
@ -187,11 +178,8 @@
- name: purge ceph nfs cluster - name: purge ceph nfs cluster
vars:
nfs_group_name: nfss
hosts: hosts:
- "{{ nfs_group_name }}" - "{{ nfs_group_name|default('nfss') }}"
become: true become: true
@ -243,11 +231,8 @@
- name: purge ceph osd cluster - name: purge ceph osd cluster
vars:
osd_group_name: osds
hosts: hosts:
- "{{ osd_group_name }}" - "{{ osd_group_name|default('osds') }}"
become: true become: true
@ -331,12 +316,8 @@
- name: purge ceph mon cluster - name: purge ceph mon cluster
vars:
mon_group_name: mons
restapi_group_name: restapis
hosts: hosts:
- "{{ mon_group_name }}" - "{{ mon_group_name|default('mons') }}"
become: true become: true
@ -389,21 +370,13 @@
- name: remove installed packages - name: remove installed packages
vars:
mon_group_name: mons
osd_group_name: osds
mds_group_name: mdss
rgw_group_name: rgws
rbdmirror_group_name: rbd-mirrors
nfs_group_name: nfss
hosts: hosts:
- "{{ mon_group_name }}" - "{{ mon_group_name|default('mons') }}"
- "{{ osd_group_name }}" - "{{ osd_group_name|default('osds') }}"
- "{{ mds_group_name }}" - "{{ mds_group_name|default('mdss') }}"
- "{{ rgw_group_name }}" - "{{ rgw_group_name|default('rgws') }}"
- "{{ rbdmirror_group_name }}" - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
- "{{ nfs_group_name }}" - "{{ nfs_group_name|default('nfss') }}"
become: true become: true
@ -559,21 +532,13 @@
- name: purge ceph directories - name: purge ceph directories
vars:
mon_group_name: mons
osd_group_name: osds
mds_group_name: mdss
rgw_group_name: rgws
rbdmirror_group_name: rbd-mirrors
nfs_group_name: nfss
hosts: hosts:
- "{{ mon_group_name }}" - "{{ mon_group_name|default('mons') }}"
- "{{ osd_group_name }}" - "{{ osd_group_name|default('osds') }}"
- "{{ mds_group_name }}" - "{{ mds_group_name|default('mdss') }}"
- "{{ rgw_group_name }}" - "{{ rgw_group_name|default('rgws') }}"
- "{{ rbdmirror_group_name }}" - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
- "{{ nfs_group_name }}" - "{{ nfs_group_name|default('nfss') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
@ -592,15 +557,6 @@
- name: purge fetch directory - name: purge fetch directory
vars:
mon_group_name: mons
osd_group_name: osds
mds_group_name: mdss
rgw_group_name: rgws
rbdmirror_group_name: rbd-mirrors
nfs_group_name: nfss
restapi_group_name: restapis
hosts: hosts:
- localhost - localhost