To clarify, the reason you see 2 diff dates is because vars are 'lazy evaluated' and evaluated for each task.
The solutions proposed above work because set_fact gets around this by forcing evaluation and assigning the value. The registration takes the 'backup_file' which is also a static value. -- ---------- 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 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/CACVha7fA-a-Zk0OBsbxk6aWQd62zrMj4cqLve5tvLeREc6%2B7jg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
