style(unix_users): name of tasks, use built in module
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-02-12 15:08:40 +01:00
parent 9f43029353
commit 9f36a69078
5 changed files with 30 additions and 30 deletions

View File

@ -1,13 +1,13 @@
---
- name: Create unix group {{ unix_group.key }} with random gid
group:
- name: "Create unix group with random gid: {{ unix_group.key }}"
ansible.builtin.group:
name: "{{ unix_group.key }}"
state: "{{ unix_group.value.state | default('present') }}"
when: unix_group.value.gid is not defined or unix_group.value.gid is defined and unix_group.value.gid | length <= 0
- name: Create unix group {{ unix_group.key }} with pre-defined gid
group:
- name: "Create unix group with pre-defined gid: {{ unix_group.key }}"
ansible.builtin.group:
name: "{{ unix_group.key }}"
gid: "{{ unix_group.value.gid }}"
state: "{{ unix_group.value.state | default('present') }}"