--- # 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 apply: tags: - check tags: - check - include_role: name: create-ichp-project apply: tags: - delete vars: role: state: absent name: "{{ project }}" tags: - delete ...