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 sudo: no
zsh_theme: agnoster zsh_theme: agnoster

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

Loading…
Cancel
Save