You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
-
- - name: primary group
- group:
- name: "{{ item }}"
- gid: "{{ users[item].gid }}"
- with_items: "{{ users.keys() }}"
- when: users[item].gid is defined
-
- - name: account
- user:
- name: "{{ item }}"
- group: "{{ item }}"
- groups: "{{ users[item].groups | default([]) | join(',') }}"
- uid: "{{ users[item].uid }}"
- home: "{{ users[item].home | default('/home/'+item) }}"
- shell: "{{ users[item].shell | default('/usr/bin/fish') }}"
- with_items: "{{ users.keys() }}"
-
- - name: password
- user:
- name: "{{ item }}"
- password: "{{ users[item].password }}"
- with_items: "{{ users.keys() }}"
- when: users[item].password is defined
|