Hello, I get the following error in my play script since version 2:
recursive loop detected in template string

TASK [setup] 
*******************************************************************
ok: [ev03.envisia.de]
ok: [ev01.envisia.de]
ok: [ev02.envisia.de]

TASK [common_tasks : Creates the project user] 
*********************************
fatal: [ev03.envisia.de]: FAILED! => {"failed": true, "msg": "recursive 
loop detected in template string: {{ project_name }}"}

The line is that:

- name: Creates the project user
  user: "home=/home/{{ project_name }} name={{ project_name }} state=present"


however the variable is defined here:

- name: installs lapp
  hosts: servers  
  vars:


*    demo: "hase"*  roles:
    - { role: python-server, project_name: "lapp" }


and it's defined in a meta/main.yml that references python-server to the 
common_tasks:

---
dependencies:
  - { role: common_tasks, project_name: "{{ project_name }}" }
  - { role: common_handlers, project_name: "{{ project_name }}" }


that was the only way to get it into ansible 1.9.4

-- 
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/a27ddbfe-11f5-4e42-b619-321eea23151c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to