I am looking for a way for config management with Ansible.
I have the structure repo/1.2.3.4/file.conf.
Can Ansible get the IP 1.2.3.4 per host and deploy the file to the host? Using a variable would make the config easier.
- copy: src=/repo/$IP/file.conf dest=/etc/file.conf owner=foo group=foo mode=0644