# Problem with templates

**URL:** <https://forum.ansible.com/t/problem-with-templates/21099>\
**Category:** Ansible Project\
**Created:** [April 7, 2016, 10:39pm UTC](https://forum.ansible.com/t/problem-with-templates/21099 "2016-04-07T22:39:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger\_Gomez](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@Roger\_Gomez](https://forum.ansible.com/u/Roger_Gomez)\
**Post date:** [April 7, 2016, 10:39pm UTC](https://forum.ansible.com/t/problem-with-templates/21099/1 "2016-04-07T22:39:43Z")

</div>

I have this very simple playbook

`

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 8, 2016, 10:02am UTC](https://forum.ansible.com/t/problem-with-templates/21099/2 "2016-04-08T10:02:10Z")

</div>

Hi

Not sure exactly but it looks like you’re mixing key=value args and yaml styl args. Try the following

---

<div class="post-metadata">

**Author:** ![Roger\_Gomez](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@Roger\_Gomez](https://forum.ansible.com/u/Roger_Gomez)\
**Post date:** [April 8, 2016, 2:49pm UTC](https://forum.ansible.com/t/problem-with-templates/21099/3 "2016-04-08T14:49:53Z")

</div>

Hi J Hawkesworth, thanks for taking the time to answer my question. I did try before both of your suggestions and the same error, I have multiple Ansible machine and only in this one does not work. Is basically ignoring the **dest** argument, definitely the output of the error is not correct. My inventory is pretty simple, I actually found this issue trying to do something else so I create this small test to narrow down the problem.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Roger\_Gomez](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@Roger\_Gomez](https://forum.ansible.com/u/Roger_Gomez)\
**Post date:** [April 8, 2016, 2:56pm UTC](https://forum.ansible.com/t/problem-with-templates/21099/4 "2016-04-08T14:56:54Z")

</div>

This is the output of the whole test:

`

➜ Ansible cat test.yml

---

<div class="post-metadata">

**Author:** ![Vamberto\_Junior](https://avatars.discourse-cdn.com/v4/letter/v/dfb087/32.png) [@Vamberto\_Junior](https://forum.ansible.com/u/Vamberto_Junior)\
**Post date:** [April 8, 2016, 6:33pm UTC](https://forum.ansible.com/t/problem-with-templates/21099/5 "2016-04-08T18:33:32Z")

</div>

Hellow Roger

I put this way and works for me

```auto
- 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 ’ ’

---

<div class="post-metadata">

**Author:** ![Roger\_Gomez](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@Roger\_Gomez](https://forum.ansible.com/u/Roger_Gomez)\
**Post date:** [April 11, 2016, 1:58pm UTC](https://forum.ansible.com/t/problem-with-templates/21099/6 "2016-04-11T13:58:19Z")

</div>

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?
