Hi there,--I'm busy with an module for managing users (With public keys) for my work.I've got the following vars:users:
- name: "Werner Dijkerman"
state: present
uid: 1000
gid: 1000
groups:
- admin
- simple_groupusers_group:
- adminAnd I have the following task:
- name: Check users state
user: name="{{ item.name }}"
state="{{ item.state }}"
with_items: "{{ users }}"
when: users_group in item.groupsWhen I add the users_group var in an host_group var file (Like group_vars/all), the users in that specific group needs te be created on the host.
But when I run the playbook, it keeps "skipping".
What am I missing or doing wrong? I tried to use it with "with_subelements" but it still keep "skipping"
Kind regards,
Werner
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/172fcef0-8b37-4366-94ca-7a72b70d3658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Looks like you may want: