Hi,
I’m trying to do something with Ansible and I would like to know how to do something.
Is it possible to launch an action if a local (not remote) file exists? Example:
- name: Install firewall rules
copy: src=init.{{ ansible_hostname }} dest=/etc/init.d/iptables owner=root group=root mode=0755 backup=yes
The problem here is my source fails (if init.{{ ansible_hostname }} doesn’t exists), I got an error message. Is it possible to do a such thing?
Thanks