fix: adjust btrfs subvol permissions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2023-12-15 22:46:31 +01:00
parent 637f57f81f
commit 1d1916ed29
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -5,8 +5,16 @@
user_user_home: "{{ unix_user.value.home | default('/home/' + unix_user.key) }}" user_user_home: "{{ unix_user.value.home | default('/home/' + unix_user.key) }}"
- name: "Create btrfs volume for unix user: {{ unix_user.key }}" - name: "Create btrfs volume for unix user: {{ unix_user.key }}"
community.general.btrfs_subvolume: block:
name: "{{ user_user_home }}" - name: "Create btrfs volume for unix user: {{ unix_user.key }}"
community.general.btrfs_subvolume:
name: "{{ user_user_home }}"
- name: "Adapt home dir permissions"
ansible.builtin.file:
path: "{{ user_user_home }}"
owner: "{{ unix_user.key }}"
group: "{{ unix_user.value.group | default('users') }}"
state: directory
when: unix_user.value.btrfs is defined and when: unix_user.value.btrfs is defined and
unix_user.value.btrfs unix_user.value.btrfs