Add mash_playbook_user_home
This commit is contained in:
parent
71f315d862
commit
bf6bc8d32a
2 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,8 @@ mash_playbook_identifier: mash
|
||||||
mash_playbook_user_username: "{{ mash_playbook_identifier }}"
|
mash_playbook_user_username: "{{ mash_playbook_identifier }}"
|
||||||
mash_playbook_user_groupname: "{{ 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`)
|
# By default, the playbook creates the user (`mash_playbook_user_username`)
|
||||||
# and group (`mash_playbook_user_groupname`) with a random id.
|
# and group (`mash_playbook_user_groupname`) with a random id.
|
||||||
# To use a specific user/group id, override these variables.
|
# To use a specific user/group id, override these variables.
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
uid: "{{ omit if mash_playbook_uid is none else mash_playbook_uid }}"
|
uid: "{{ omit if mash_playbook_uid is none else mash_playbook_uid }}"
|
||||||
state: present
|
state: present
|
||||||
group: "{{ mash_playbook_user_groupname }}"
|
group: "{{ mash_playbook_user_groupname }}"
|
||||||
home: "{{ mash_playbook_base_path }}"
|
home: "{{ mash_playbook_user_home }}"
|
||||||
create_home: false
|
create_home: false
|
||||||
system: true
|
system: true
|
||||||
register: mash_base_user_result
|
register: mash_base_user_result
|
||||||
|
|
Loading…
Reference in a new issue