blob: 15f441f9a40ce3cf5d05b737451cc1dd2d4c9629 (
plain)
1
2
3
4
5
6
|
How to construct an array variable containing results of an iterative ansible task?
Use register. The referenced variable will contain a property results which is a list containing the combined outputs of the loop.
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html#registering-variables-with-a-loop
[[ansible]]
|