Stouts / Stouts.openvpn

Ansible role to install and configure OpenVPN server
MIT License
287 stars 207 forks source link

Upload inline scripts fails #155

Closed apiening closed 4 years ago

apiening commented 4 years ago

When I populate openvpn_inline_scripts like this:

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

Renaming the module template with copy in the task, solves the issue and the inline scripts are created.

nkakouros commented 4 years ago

Thanks for reporting issues and for you suggestions. I have pushed fixes for them. Let me know how they work for you.