Hi all!
Have some trouble in the access to the part of variable.
I have following configuration:
`
service_user:
- { name: “service”, pass: “blablabla”, flags: “ADMIN” }
`
and later:
`
- name: “Stage 3: start service”
command: “start-service.sh -u {{ service_user.name }}”
`
when playbook playing, at this place I got error “One or more undefined variables: ‘list object’ has no attribute ‘name’”
Also service_user variable is used in the jinja template and work properly.
How to do it right, and don’t break variable usage in template?