Skip to content


inventory file (example)



ansible.cfg (example)

remote_user = devops
inventory = inventory

become = False
become_method = sudo
become_user = root
become_ask_pass = False

To verify your playbook you can use the command below:
ansible-playbook --syntax-check

To perform a dry run for your playbook you can use the command:
ansible-playbook -C

dynamic inventory files
Working With Dynamic Inventory: Ansible Documentation
Developing Dynamic Inventory: Ansible Documentation

Leave a Reply

Your email address will not be published. Required fields are marked *