On 12. juni 2016 04:22, [email protected] wrote:
The error appears to have been in
'/usr/share/ansible/NXS-TEMPLATE/roles/tor/tasks/main.yml': line 2, column
5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
   - name: Generate tor files
     ^ here


The file main.yml has the following contents:

---
   - name: Generate tor files
     template: src=tor.j2 dest="{{ item.hostname }}.txt"
     with_items:
      - hostname: nexus1
      - hostname: nexus2

Your indentation is wrong, change it to the following,
---
- name: Generate tor files
  template: src=tor.j2 dest="{{ item.hostname }}.txt"
  with_items:
    - hostname: nexus1
    - hostname: nexus2

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

Reply via email to