Difference between revisions of "Ansible-playbook"

From wikieduonline
Jump to navigation Jump to search
 
(29 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>
  
* Man page: https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
+
* <code>[[ansible-playbook --ask-vault-password]]</code>
 +
* <code>[[ansible-playbook --help]]</code>
  
ansible-playbook -i host_test_1, your_playbook.yml
+
* <code>[[ansible-playbook -i]] my_host_test_1 your_playbook.yml</code>
 +
:::<code>-i INVENTORY</code>
  
  
Line 9: 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]] or -k
+
*<code>#!/usr/bin/env ansible-playbook [[--ask-pass]] or -k</code>
  
  ansible-playbook
+
*<code>#!/usr/bin/env ansible-playbook -u OTHER_USERNAME</code>
usage: ansible-playbook [-h] [--version] [-v] [-k]
 
                        [--private-key PRIVATE_KEY_FILE] [-u REMOTE_USER]
 
                        [-c CONNECTION] [-T TIMEOUT]
 
                        [--ssh-common-args SSH_COMMON_ARGS]
 
                        [--sftp-extra-args SFTP_EXTRA_ARGS]
 
                        [--scp-extra-args SCP_EXTRA_ARGS]
 
                        [--ssh-extra-args SSH_EXTRA_ARGS] [--force-handlers]
 
                        [--flush-cache] [-b] [--become-method BECOME_METHOD]
 
                        [--become-user BECOME_USER] [-K] [-t TAGS]
 
                        [--skip-tags SKIP_TAGS] [-C] [--syntax-check] [-D]
 
                        [-i INVENTORY] [--list-hosts] [-l SUBSET]
 
                        [-e EXTRA_VARS] [--vault-id VAULT_IDS]
 
                        [--ask-vault-pass | --vault-password-file VAULT_PASSWORD_FILES]
 
                        [-f FORKS] [-M MODULE_PATH] [--list-tasks]
 
                        [--list-tags] [--step] [--start-at-task START_AT_TASK]
 
                        playbook [playbook ...]
 
ansible-playbook: error: the following arguments are required: playbook
 
  
 
ansible-playbook --check
 
  
 
== 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-playbook}}
 
* {{Ansible modules}}
 
* {{Ansible modules}}
* {{Ansible}}
 
 
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]

Latest revision as of 11:08, 8 September 2023

Advertising: