Include group_vars files in purge cluster playbook

- Add all relevant group_vars files in containerized purge cluster
  playbook and ignore errors if file may not exist.
- Also fixing indentation issues.

Signed-off-by: Ivan Font <ivan.font@redhat.com>
pull/931/head
Ivan Font 2016-08-12 09:47:10 -07:00
parent c1905bfa23
commit 7c9cb0993e
1 changed files with 46 additions and 10 deletions

View File

@ -58,6 +58,9 @@
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: roles/ceph-mds/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/mdss
ignore_errors: true
- name: disable ceph mds service
service:
@ -101,6 +104,9 @@
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: roles/ceph-rgw/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/rgws
ignore_errors: true
- name: disable ceph rgw service
service:
@ -144,6 +150,9 @@
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: roles/ceph-rbd-mirror/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/rbd-mirrors
ignore_errors: true
- name: disable ceph rbd-mirror service
service:
@ -187,6 +196,9 @@
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: roles/ceph-nfs/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/nfss
ignore_errors: true
- name: disable ceph nfs service
service:
@ -239,6 +251,9 @@
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/osds
ignore_errors: true
- name: disable ceph osd service
service:
@ -332,6 +347,11 @@
- include_vars: roles/ceph-mon/defaults/main.yml
- include_vars: roles/ceph-restapi/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/mons
ignore_errors: true
- include_vars: group_vars/restapis
ignore_errors: true
- name: disable ceph mon service
service:
@ -352,6 +372,7 @@
image: "{{ ceph_restapi_docker_username }}/{{ ceph_restapi_docker_imagename }}:{{ ceph_restapi_docker_image_tag }}"
name: "{{ ansible_hostname }}-ceph-restapi"
state: absent
ignore_errors: true
- name: remove ceph mon service
file:
@ -580,6 +601,21 @@
tasks:
- include_vars: roles/ceph-common/defaults/main.yml
- include_vars: group_vars/all
ignore_errors: true
- include_vars: group_vars/mdss
ignore_errors: true
- include_vars: group_vars/rgws
ignore_errors: true
- include_vars: group_vars/rbd-mirrors
ignore_errors: true
- include_vars: group_vars/nfss
ignore_errors: true
- include_vars: group_vars/osds
ignore_errors: true
- include_vars: group_vars/mons
ignore_errors: true
- include_vars: group_vars/restapis
ignore_errors: true
- name: purge fetch directory for localhost
file: