123456789101112131415161718192021222324252627282930 |
- ---
- # Removes the (previously created) ICHP project from the cluster.
- #
- # Pass variables to this playbook on the command line (-e):
- #
- # project: the name of the project (role.name)
- #
- - name: Ensure an ICHP-lookalike project is gone.
- hosts: workstation.lab.example.com
- gather_subset: min
- become: no
- tasks:
- - name: Ensure that the parameters are specified.
- ansible.builtin.assert:
- that:
- - project is defined
- success_msg: "OK, got all parameters, continuing."
- fail_msg: "FATAL: You must specify the name of the project to delete using the \"project\" variable."
- # Get auth info, and test comms.
- - include_role:
- name: check-env
- - include_role:
- name: create-ichp-project
- vars:
- role:
- state: absent
- name: "{{ project }}"
- ...
|