Hellow Roger

I put this way and works for me


- name: Copy ntp.conf from template
  template: src=ntp.conf.j2 dest=/etc/ntp.conf
  when: ansible_hostname != 'vmlog'
  notify:
   - restart ntp


Try to put without ' '  


Em quinta-feira, 7 de abril de 2016 19:39:43 UTC-3, Roger Gomez escreveu:
>
> 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/56a54265-00bf-453a-aa2a-2da3b625de30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to