Difference between revisions of "Ansible-playbook"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(19 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{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>ansible-playbook -i | + | :::<code>-i INVENTORY</code> |
− | |||
Line 11: | Line 13: | ||
− | + | *<code>#![[/usr/bin/env ansible-playbook]]</code> | |
− | |||
− | |||
− | |||
− | |||
− | + | *<code>#!/usr/bin/env ansible-playbook [[--ask-become-pass]] or -K</code> | |
− | + | *<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]] | * [[Ansible playbooks examples]] | ||
+ | * <code>[[ANSIBLE HOST KEY CHECKING]]</code> | ||
+ | * <code>[[--ask-vault-password]]</code> | ||
== See also == | == See also == | ||
* {{ansible-playbook}} | * {{ansible-playbook}} | ||
* {{Ansible modules}} | * {{Ansible modules}} | ||
− | |||
− | |||
[[Category:Ansible]] | [[Category:Ansible]] |
Latest revision as of 11:08, 8 September 2023
Man page: https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
ansible-playbook --check
ansible-playbook -i my_host_test_1 your_playbook.yml
-i INVENTORY
#!/usr/bin/env ansible-playbook --ask-become-pass or -K
#!/usr/bin/env ansible-playbook --ask-pass or -k
#!/usr/bin/env ansible-playbook -u OTHER_USERNAME
Related terms[edit]
See also[edit]
ansible-playbook
,ansible-playbook --check
,--tags, -i, --vvv
- Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
Advertising: