account: Added variable for user directory

wip
Felix Stupp 5 years ago
parent c56ed16851
commit d9b4510200
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,4 +1,6 @@
---
user_directory: "/home/{{ username }}"
sudo: no
zsh_theme: agnoster

@ -14,7 +14,7 @@
- name: Configure user account {{ username }}
user:
name: "{{ username }}"
home: "/home/{{ username }}"
home: "{{ user_directory }}"
create_home: yes
move_home: yes
shell: /bin/zsh
@ -31,7 +31,7 @@
- name: Configure home directory
file:
path: "/home/{{ username }}"
path: "{{ user_directory }}"
state: directory
owner: "{{ username }}"
group: "{{ username }}"

Loading…
Cancel
Save