The repository mixed both extensions, the molecule scenario used yml while the role itself used yaml. The yml extension is the one ansible-galaxy and molecule generate, so it is applied throughout and across the sibling roles. The include_tasks calls in tasks/main.yml and tasks/create_unix_user.yml name their target explicitly and were adjusted accordingly, otherwise the role would no longer find the included task files. Co-authored-by: Copilot <copilot@github.com>
9 lines
334 B
YAML
9 lines
334 B
YAML
---
|
|
|
|
- name: "Create unix group: {{ unix_group.key }}"
|
|
ansible.builtin.group:
|
|
name: "{{ unix_group.key }}"
|
|
# The boolean form of default also omits an empty gid, which means let the system assign one.
|
|
gid: "{{ unix_group.value.gid | default(omit, true) }}"
|
|
state: "{{ unix_group.value.state | default('present') }}"
|