Difference between revisions of "Ansible variables"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
[[vars:]] | [[vars:]] | ||
your_new_variable: your_new_var_value | your_new_variable: your_new_var_value | ||
+ | |||
+ | * <code>[[/group_vars/]]</code> | ||
+ | * <code>[[/host_vars/]]</code> | ||
Revision as of 08:48, 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
See also
Advertising: