When using Ansible, the controller is the machine you execute playbooks from.
I want to only run an Ansible task in a playbook when the controller has a file.
Is there a way to write something like this and exists(x.tgz), below?
- name: "copy up and unarchive the x for x if we have it on our controller"
unarchive:
src: x.tgz
dest: /usr/local/lib/x
when: "{{ { enable_me | bool } and exists(x.tgz) }}"