Hi
Not sure exactly but it looks like you're mixing key=value args and yaml
styl args. Try the following
---
- hosts: all
gather_facts: no
vars:
- my_list: [1,2,3,4]
tasks:
- name: TEMPLATE
template:
dest: /home/Ansible/dest.y
src: src.j2
Or
---
- hosts: all
gather_facts: no
vars:
- my_list: [1,2,3,4]
tasks:
- name: TEMPLATE
template: dest=/home/Ansible/dest.y src=src.j2
On Thursday, April 7, 2016 at 11:39:43 PM UTC+1, Roger Gomez wrote:
>
> I have this very simple playbook
> ---
> - hosts:
> - all
> gather_facts: no
> vars:
> - my_list: [1,2,3,4]
> tasks:
> - name: TEMPLATE
> template:
> dest='/home/Ansible/dest.y'
> src='src.j2'
>
> And when I run the playbook I got:
> failed: [HOST-A] => {"failed": true}
> msg: missing required arguments: dest
>
>
> Any idea?
> Thanks.
>
>
--
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/1b4c11c4-7a22-4dd7-88ee-21d6e4eb6153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.