diff options
author | 2016-01-16 02:27:23 +0000 | |
---|---|---|
committer | 2016-01-16 02:27:24 +0000 | |
commit | 7a1ca84a19fd1e5b8178ac3c471a30f71e845596 (patch) | |
tree | b352bae1525321ee393fd1ab4cff532cd2539237 /deploy/adapters/ansible/roles/ceph-purge | |
parent | 6d0c31acb8e9702824f0697eb9916886b0324797 (diff) | |
parent | 2616357bbf1d5cfc1f7e3923e12b8adfc5627fc6 (diff) |
Merge "deploy CEPH nodes parallelly"
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-purge')
-rw-r--r-- | deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml new file mode 100644 index 00000000..8bf3a3ed --- /dev/null +++ b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml @@ -0,0 +1,27 @@ +- name: clear tmp files + local_action: shell rm -rf /tmp/ceph* + tags: + - ceph_purge + - ceph_deploy + +- name: install ceph-related packages + action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" + with_items: + - ceph-deploy + tags: + - ceph_purge + - ceph_deploy + +- name: purge ceph + shell: "ceph-deploy purge {{ inventory_hostname }}; ceph-deploy purgedata {{ inventory_hostname }}; ceph-deploy forgetkeys" + tags: + - ceph_purge + - ceph_deploy + +- name: remove monmap + file: path="/tmp/monmap" state="absent" + tags: + - ceph_purge + - ceph_deploy + + |