Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload inline scripts fails #155

Closed
apiening opened this issue Mar 15, 2020 · 1 comment
Closed

Upload inline scripts fails #155

apiening opened this issue Mar 15, 2020 · 1 comment

Comments

@apiening
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants