Not tested:
- tasks: restore the config file
shell: chdir="{{ dirsav }}" mv config /{{ Directoryname }}/
when: do_restore is defined
With restore:
ansible-playbook myplaybook.yml --extra-vars="do_restore=True"
Without restore:
ansible-playbook myplaybook.yml
--
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/bc7c4428-46de-4906-b3b3-2766f7f13f0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.