Difference between revisions of "With items:"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  with_items:
 
  with_items:
  
 
+
<pre>
 +
<nowiki>
 
  - name: "loop through list"
 
  - name: "loop through list"
   [[ansible.builtin.debug]]:
+
   ansible.builtin.debug:
     [[msg]]: "An item: {{ item }}"
+
     msg: "An item: {{ item }}"
 
   with_items:
 
   with_items:
 
     - 1
 
     - 1
 
     - 2
 
     - 2
 
     - 3
 
     - 3
 +
</nowiki>
 +
</pre>
  
  

Revision as of 12:32, 27 December 2022

Advertising: