Hi Vamberto, thank you so much for responding.
Take a look to my previous post, I did not use any quotation and still did
not work. I know also that if I copy the same playbook to another Ansible
Machine it does work perfectly, I was trying to find here if there is any
know issue that shows an output like this, definitely I think that there is
some kind of problem with output because the destination is provided. Any
idea of what could lead to this behavior?
On Friday, April 8, 2016 at 2:33:32 PM UTC-4, Vamberto Junior wrote:
>
> 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/83420cf3-dd24-48d1-860e-751af57fea6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.