2 Step 3: Run your playbook
Vladimir Smagin edited this page 10 months ago

To run playbook just use this command:

ansible-playbook ssh-keys.yml -i inventory.ini

You can set limit to host or group:

ansible-playbook ssh-keys.yml -i inventory.ini -l monitor

Remember about inheritance in access tree, if you limit playbook by lowest hosts or groups parent key lists will be ignored.

And strongly recommend to read official Ansible documentation!