Good evening. I have an inventory file of the following form:
[main] cl-main ansible_host=10.0.9.700 ansible_user=ansible [cluster] cl-node1 ansible_host=10.0.9.701 ansible_user=ansible cl-node2 ansible_host=10.0.9.702 ansible_user=ansible cl-node3 ansible_host=10.0.9.703 ansible_user=ansible In the directory / playbooks is a set of playbooks. The hosts indicate where the playbook will be played.
Playback for example:
--- - hosts: cl-main roles: - kiask.cassandra What if I want to play a playbook for cl-node1? It is necessary to change the addressee in the playbook itself (which is not good), or can this be done by one team selecting the host from the inventory file?
Thank you for attention!