Difference between revisions of "Ansible-playbook"

From wikieduonline
Jump to navigation Jump to search
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
 +
Man page: https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
 +
* <code>ansible-playbook [[--check]]</code>
 +
 
 +
* <code>[[ansible-playbook --ask-vault-password]]</code>
 +
* <code>[[ansible-playbook --help]]</code>
 +
 
 +
* <code>[[ansible-playbook -i]] my_host_test_1 your_playbook.yml</code>
 +
:::<code>-i INVENTORY</code>
  
  
Line 5: Line 13:
  
  
#![[/usr/bin/env]] ansible-playbook
+
*<code>#![[/usr/bin/env ansible-playbook]]</code>
  
#!/usr/bin/env ansible-playbook [[--ask-become-pass]]
+
*<code>#!/usr/bin/env ansible-playbook [[--ask-become-pass]] or -K</code>
  
#!/usr/bin/env ansible-playbook [[--ask-pass]]
+
*<code>#!/usr/bin/env ansible-playbook [[--ask-pass]] or -k</code>
 +
 
 +
*<code>#!/usr/bin/env ansible-playbook -u OTHER_USERNAME</code>
  
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[remote_user:]]</code>
 
* <code>[[remote_user:]]</code>
 +
* <code>[[hosts:]]</code>
 +
* [[Ansible playbooks examples]]
 +
* <code>[[ANSIBLE HOST KEY CHECKING]]</code>
 +
* <code>[[--ask-vault-password]]</code>
  
 
== See also ==
 
== See also ==
* {{Ansible}}
+
* {{ansible-playbook}}
 
+
* {{Ansible modules}}
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]

Latest revision as of 11:08, 8 September 2023

Advertising: