You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: List is just a list. Typicaly used when you need to do something with every item in it.
12
+
debug:
13
+
msg: "We can install: {{ item }}"
14
+
with_items: "{{ soft }}"
15
+
16
+
- name: List is not a key:value(hash table), list is just a keys. So we will get "VARIABLE IS NOT DEFINED!" here, because there is no variables like "htop".
17
+
debug:
18
+
var: "{{ item }}"
19
+
with_items: "{{ soft }}"
20
+
21
+
- name: We will get variable type in this syntax, but not variable content. See next example.
22
+
debug:
23
+
var: "{{ soft }}"
24
+
25
+
- name: We will get all list if we request it as bare variable name. You should exclude bare variable names usage from you roles and playbooks, as it is deprecated and will be removed soon (except debug).
0 commit comments