Difference between revisions of "Dry run and syntax check for ansible-playbooks"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb> =Dry run and syntax check for ansible-playbooks= To perform dry run and syntax check for ...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>Ansible_tips_and_tricks|Ansible tips and tricks</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible tips and tricks]] > [[Dry run and syntax check for ansible-playbooks]]
=Dry run and syntax check for ansible-playbooks=


To perform dry run and syntax check for ansible-playbooks use:
To perform dry run and syntax check for ansible-playbooks use:
Line 6: Line 5:
ansible-playbook --syntax-check --list-tasks -i hosts_file playbook.yaml
ansible-playbook --syntax-check --list-tasks -i hosts_file playbook.yaml
</pre>
</pre>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible tips and tricks]] > [[Dry run and syntax check for ansible-playbooks]]

Latest revision as of 11:50, 28 July 2022

Home > CentOS > CentOS 6.x > System administration tools > ansible > Ansible tips and tricks > Dry run and syntax check for ansible-playbooks

To perform dry run and syntax check for ansible-playbooks use:

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



Home > CentOS > CentOS 6.x > System administration tools > ansible > Ansible tips and tricks > Dry run and syntax check for ansible-playbooks