Ansible Playbook – Syntax check and dry run

 

To perform syntax check and dry run for ansible playbook use following command:

ansible-playbook -i hosts_file --syntax-check --list-tasks playbook.yml

where, –syntax-check is used to check syntax of a playbook & –list-tasks is to all tasks that are executed.

Advertisements

5 comments on “Ansible Playbook – Syntax check and dry run

  1. Pingback: Ansible | pseudo-scripter

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s