because tests//lookups/filters/.. basically everything except the module itself, executes on controller, so you need to have a 'stat' tasks first, register the result and use that to see if the file exists. As written your conditional will only work if the controller has that file (remote is never checked).
-- ---------- Brian Coca -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cU8dJasMgdRESu5d1Y09JYxXj6j%3DVvrGJULW1oxEbB3g%40mail.gmail.com.
