Difference between revisions of "Ansible variables"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
* [[DEBUG]] | * [[DEBUG]] | ||
* <code>[[--extra-vars]]</code> | * <code>[[--extra-vars]]</code> | ||
+ | * <code>[[/group_vars/]]</code> | ||
== See also == | == See also == |
Revision as of 08:42, 19 August 2022
Creating a variable:
vars: your_new_variable: your_new_var_value
- name: Execute a command ansible.builtin.command: "false" debugger: on_failed
Related
vars:
- Ansible print and debug examples
- Msg: The task includes an option with an undefined variable.
- DEBUG
--extra-vars
/group_vars/
See also
- 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: