|
|
|
@ -35,7 +35,22 @@
|
|
|
|
|
update_password: on_create
|
|
|
|
|
when: loginisbusy.rc != 0 and uidisbusy.rc == 0
|
|
|
|
|
|
|
|
|
|
- name: "Fix perms on homedirectory for '{{ user.name }}'"
|
|
|
|
|
- name: "Create secondary groups"
|
|
|
|
|
group:
|
|
|
|
|
name: "{{ group }}"
|
|
|
|
|
with_items: "{{ user.groups }}"
|
|
|
|
|
loop_control:
|
|
|
|
|
loop_var: group
|
|
|
|
|
when: user.groups is defined
|
|
|
|
|
|
|
|
|
|
- name: "Add user '{{ user.name }}' to secondary groups"
|
|
|
|
|
user:
|
|
|
|
|
name: '{{ user.name }}'
|
|
|
|
|
groups: "{{ user.groups }}"
|
|
|
|
|
append: yes
|
|
|
|
|
when: user.groups is defined
|
|
|
|
|
|
|
|
|
|
- name: "Fix perms on home directory for '{{ user.name }}'"
|
|
|
|
|
file:
|
|
|
|
|
name: '/home/{{ user.name }}'
|
|
|
|
|
mode: "0700"
|
|
|
|
|