Questions tagged [hostvars]
16 questions
0
votes
1 answer
how to loop over hostvars of register output
I'm struggling to loop over hostvars of the registered output of all the hosts in dynamic inventory.
Here is the code.
$cat collect.yaml
---
- hosts: "{{ env }}"
become: True
tasks:
- name: Get dockerinfo
docker_host_info:
…

Sara James
- 133
- 1
- 14