Closed apiening closed 4 years ago
When I populate openvpn_inline_scripts like this:
openvpn_inline_scripts
openvpn_inline_scripts: - name: my-up-script.sh content: | #!/usr/bin/env echo 'Up!' >> "/var/up.log"
the task Upload inline scripts from the file tasks/scripts.yml fails with the error src and dest are required. Which is also mentioned in the docs of the template-module: https://docs.ansible.com/ansible/latest/modules/template_module.html
Upload inline scripts
tasks/scripts.yml
src and dest are required
Renaming the module template with copy in the task, solves the issue and the inline scripts are created.
template
copy
Thanks for reporting issues and for you suggestions. I have pushed fixes for them. Let me know how they work for you.
When I populate
openvpn_inline_scripts
like this:the task
Upload inline scripts
from the filetasks/scripts.yml
fails with the errorsrc and dest are required
. Which is also mentioned in the docs of the template-module: https://docs.ansible.com/ansible/latest/modules/template_module.htmlRenaming the module
template
withcopy
in the task, solves the issue and the inline scripts are created.