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 1.1.1.1, 1.1.2.3 etc, and the is file on each of the hosts named list.txt
should contain the following:
All hosts in the group are: 1.1.1.1, 1.1.2.3
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?