Add mash_playbook_user_home

This commit is contained in:
Slavi Pantaleev 2023-03-25 09:50:09 +02:00
parent 71f315d862
commit bf6bc8d32a
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ mash_playbook_identifier: mash
mash_playbook_user_username: "{{ mash_playbook_identifier }}"
mash_playbook_user_groupname: "{{ mash_playbook_identifier }}"
mash_playbook_user_home: "{{ mash_playbook_base_path }}"
# By default, the playbook creates the user (`mash_playbook_user_username`)
# and group (`mash_playbook_user_groupname`) with a random id.
# To use a specific user/group id, override these variables.

View file

@ -15,7 +15,7 @@
uid: "{{ omit if mash_playbook_uid is none else mash_playbook_uid }}"
state: present
group: "{{ mash_playbook_user_groupname }}"
home: "{{ mash_playbook_base_path }}"
home: "{{ mash_playbook_user_home }}"
create_home: false
system: true
register: mash_base_user_result