Difference between revisions of "Vars:"
Jump to navigation
Jump to search
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | #!/usr/bin/env ansible-playbook | + | [[#!/usr/bin/env]] ansible-playbook |
- hosts: localhost | - hosts: localhost | ||
− | gather_facts: no | + | [[gather_facts:]] no |
− | + | vars: | |
my_var: MY_VALUE | my_var: MY_VALUE | ||
Line 15: | Line 15: | ||
== Related == | == Related == | ||
* [[Ansible print and debug examples]] | * [[Ansible print and debug examples]] | ||
+ | * [[Ansible variables|Variables]] | ||
+ | * <code>[[--extra-vars]]</code> | ||
+ | * <code>[[ansible_python_interpreter]]</code> | ||
+ | * <code>[[with_items:]]</code> | ||
== See also == | == See also == |
Latest revision as of 10:59, 1 December 2022
#!/usr/bin/env ansible-playbook - hosts: localhost gather_facts: no vars: my_var: MY_VALUE tasks: - name: My first task to show uptime command: uptime
Related[edit]
See also[edit]
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: