Hi,
I start a playbook like this : ansible-playbook ./srweb.yml -K -i
./clients/Myclient -e "client=Myclient"
In my playbook, I have a vars_files :
vars_files:
- "/home/me/ansible/clients/{{ client }}.{{ ansible_hostname }}.users"
My vars_file start like this :
---
users:
- login: goliath
[...]
But, there is an error :
> fatal: [srweb03] => One or more undefined variables: 'str object' has no
> attribute 'login'
The task :
> - name: zfs create user base directory
zfs: name="{{ zbaseroot }}{{ homeprefix }}/{{ item.login }}" state=present
with_items: users
I checked the file"/home/me/ansible/clients/{{ client }}.{{
ansible_hostname }}.users" with a debug task. All variables are OK and I
can read the file
Where is the problem ? Thanks you
--
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].
For more options, visit https://groups.google.com/groups/opt_out.