Here is a playbook to test it locally.
---
- hosts: my-3-nodes
  tasks:
    - stat:
        path: /tmp/hi
      register: me
      
    - shell: echo
      when: me.stat.exists == true and ...


On node 2 and 3 perform:
$: touch /tmp/hi

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/60e220ea-3a0e-4bea-9933-b7ee721fa0e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to