I am new to Ansible and i have a question about limitting hosts in a host group at running commands.I have these host groups in my inventory:
[primary] host1 host2 [standby] host3 host4
i have thses configuration in my
--- - hosts: primary roles: - automation
for example i want to run this command
ansible -playbook -i /path test.yml --tags automation on
host2 only. what should i do?