Q: Is it possible to have a pair of IPs in Ansible?
A: Yes. It is possible. For example, it might be useful to create groups in the inventory with all pieces of information.
It's possible to simplify the fetching of ...
I'd suggest that you first put some default values within the playbook (if you explicitly want your variables there, for the purpose of .. reducing interactivity/command line args lets say):
- hosts: all
Second, I'm pretty sure that pass is a reserved word somewhere, although I'm failing to find it in ...
any with_* is actully a local lookup.
So as Zeitounator mentioned, you're going to need to use something like the find module to fetch the files you want.
so I imagine that something like this would work:
- hosts: primary
- name: gather list of files to fetch
Q: Is it possible to share variables across instances?
A: Yes. The dictionary hostvars keeps the variables. Quoting from Accessing information about other hosts with magic variables
hostvars lets you access variables for another host, including facts that have been gathered about that host. You can access host variables at any point in a playbook. ...