Files
ansible-freeipa/playbooks/uninstall_server.yml
Rafael Guterres Jeffman da4194b4f4 collection: Allow playbooks to be executed using collection
When available in a collection 'playbooks' directory, playbooks can be
directly accessed as roles and modules: 'namespace.collection.playbook'.
This allows, for example the deployment roles to be executed with the
provided ansible-freeipa playbooks requiring minimal effort from the
user part.

In order to be accessible, though, the playbooks must not use dash ("-")
on the file names, as they are replaced by underscorse ("_") during
Ansible processing and then, the files are not found.

By renaming the playbooks that, currently, do not set any variable as an
usage example, replacing "-" by "_", we allow the FreeIPA collection
playbooks to be executed without the user having to search for the
correct file, like:

  $ ansible-playbook -i inventory freeipa.ansible_freeipa.install_server
2025-03-17 15:39:07 -03:00

9 lines
130 B
YAML

---
- name: Playbook to unconfigure IPA servers
hosts: ipaserver
become: true
roles:
- role: ipaserver
state: absent