Do not try to run useradd/groupadd if mash_playbook_uid/mash_playbook_gid explicitly specified
Certain environments (like https://libreelec.tv/) do not have `useradd`/`groupadd` tools, so it's important to be able to avoid calling them, especially for no good reason.
This commit is contained in:
parent
2a8aebf309
commit
cd7ef92fb4
1 changed files with 22 additions and 20 deletions
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
|
||||
- when: not mash_playbook_uid and not mash_playbook_uid
|
||||
block:
|
||||
- name: Ensure mash group is created
|
||||
ansible.builtin.group:
|
||||
name: "{{ mash_playbook_user_groupname }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue