On 17. juni 2016 07:04, [email protected] wrote:
I still see the same error after correcting the indentation as shown below:

more roles/tor/tasks/main.yml
---
- name: Generate tor files
   template: src=tor.j2 dest="{{ item.hostname }}.txt"
   with_items:
     - hostname: nexus1
     - hostname: nexus2

++++++++++++++++++++
ansible-playbook site.yml
ERROR! conflicting action statements

The error appears to have been in
'/usr/share/ansible/NXS-TEMPLATE/roles/tor/tasks/main.yml': line 2, column
3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Generate tor files
   ^ here

Since this seams to be correct your problem must be inn another file, maybe your playbook?

--
Kai Stian Olstad

--
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/5764067D.9070208%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to