Difference between revisions of "Ansible-playbook --check"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
In check mode, Ansible runs without making any changes on remote system.
 
In check mode, Ansible runs without making any changes on remote system.
  
<code>[[ansible-playbook --check]] foo.yml</code>
+
<code>[[ansible-playbook]] --check foo.yml</code>
  
<code>[[ansible-playbook --check]] foo.yml [[-i]] your_host</code>  
+
<code>[[ansible-playbook]] --check foo.yml [[-i]] your_host</code>  
  
 
  [[-C]] or [[--check]]
 
  [[-C]] or [[--check]]

Revision as of 09:32, 18 October 2022

In check mode, Ansible runs without making any changes on remote system.

ansible-playbook --check foo.yml

ansible-playbook --check foo.yml -i your_host

-C or --check

See also

Advertising: