I have several IPs in my Ansible hosts file and would like to have it listed in the file that will be copied to each of these hosts. Say, this hosts are 18.104.22.168, 22.214.171.124 etc, and the is file on each of the hosts named
list.txt should contain the following:
All hosts in the group are: 126.96.36.199, 188.8.131.52
I do understand I can copy file with static content or I can iterate over vars set separately but how to iterate over host list entries?