Talk:Ansible: Difference between revisions

Line 186:
Host Scope: Set on groups or Individual hosts through inventory file.
* Variables defined at highest level wins: Global scope wins from host scope
 
== Defining Variables ==
 
* Defining in Playbook:
<pre>
Line 204 ⟶ 207:
user: test2
home: /home/test2
</pre>
 
== Using Variables ==
 
<pre>
tasks:
- name: Creates the user {{user}}
user:
name: "{{ user }}"
</pre>