Run Ansible Playbook Locally
At times, we require an Ansible Playbook to run locally on the host server. Few examples are given below -
1. Using Ansible Commandline
2. Using Ansible Inventory File
We can also, add the host in an inventory file such as -
3. Using Ansible Configuration File
4. Using Playbook Header
Source: GitHub Gist - Ansible playbook Locally
Reference(s):
Last updated