- 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
With restore:
ansible-playbook myplaybook.yml
Without restore:
ansible-playbook myplaybook.yml --skip-tags "restore"
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1da6358a-3130-4070-9c32-d52a328d362a%40googlegroups.com.--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.