ansible-role-users/tasks/groups.yml

10 lines
301 B
YAML
Raw Normal View History

2022-01-23 02:20:50 +01:00
- block:
- name: "Create group for user '{{ user.username }}'."
tags: users
ansible.builtin.group:
name: "{{ user.group | default(user.username) }}"
gid: "{{ user.gid | default(omit) }}"
state: present
when:
- user.state | default('present') == 'present'