-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename rook-cleanup -> rook-purge (#496)
Signed-off-by: Christian Berendt <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- name: Confirm whether user really meant to purge the cluster | ||
hosts: localhost | ||
gather_facts: false | ||
|
||
vars_prompt: | ||
- name: ireallymeanit | ||
prompt: Are you sure you want to purge the cluster? | ||
default: 'no' | ||
private: no | ||
|
||
tasks: | ||
- name: Exit playbook, if user did not mean to purge cluster | ||
ansible.builtin.fail: | ||
msg: > | ||
"Exiting rook-purge playbook, cluster was NOT purged. | ||
To purge the cluster, either say 'yes' on the prompt or | ||
or use `-e ireallymeanit=yes` on the command line when | ||
invoking the playbook" | ||
when: ireallymeanit != 'yes' | ||
|
||
- name: Purge Ceph cluster managed with Rook | ||
hosts: | ||
- "{{ hosts_manager|default(groups['manager'][0])|default('localhost') }}" | ||
connection: local | ||
gather_facts: false | ||
|
||
tasks: | ||
- name: Include cleanup.yml from osism.services.rook role | ||
ansible.builtin.include_role: | ||
name: osism.services.rook | ||
tasks_from: cleanup.yml |