fix: support btrfs subvolume for unix user's home dir
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2023-11-24 10:31:26 +01:00
parent e24515d232
commit 409466869a
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -7,7 +7,8 @@
- name: "Create btrfs volume for unix user: {{ unix_user.key }}" - name: "Create btrfs volume for unix user: {{ unix_user.key }}"
community.general.btrfs_subvolume: community.general.btrfs_subvolume:
name: "{{ user_user_home }}" name: "{{ user_user_home }}"
when: unix_user.value.btrfs when: unix_user.value.btrfs is defined and
unix_user.value.btrfs
- name: "Create unix user without additional groups and uid: {{ unix_user.key }}" - name: "Create unix user without additional groups and uid: {{ unix_user.key }}"
ansible.builtin.user: ansible.builtin.user:
@ -76,7 +77,8 @@
owner: "{{ unix_user.key }}" owner: "{{ unix_user.key }}"
group: "{{ unix_user.value.group | default('users') }}" group: "{{ unix_user.value.group | default('users') }}"
state: directory state: directory
when: unix_user.value.btrfs when: unix_user.value.btrfs is defined and
unix_user.value.btrfs
- name: "Create .ssh directory for unix user: {{ unix_user.key }}" - name: "Create .ssh directory for unix user: {{ unix_user.key }}"
ansible.builtin.file: ansible.builtin.file: