Mount data disk next to homes.

This commit is contained in:
Andreas B. Mundt 2020-12-05 18:16:43 +01:00
parent 7828de3347
commit e1cea0c0a3

View file

@ -75,8 +75,28 @@
command: efibootmgr --delete-bootorder
when: run_in_installer|default(false)|bool
################# from kiosk.yml ##################
############## extra data partition ###############
- name: mount data partition
mount:
src: "UUID={{ hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)]['partitions']['%s1'|format(item)]['uuid'] }}"
path: /home/data
fstype: ext4
state: mounted
register: data_mounted
when: hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)] | default(false)
loop:
- sdb
- sde
- name: set sticky bit on data directory
file:
path: /home/data
state: directory
mode: '1777'
when: data_mounted.changed
################# from kiosk.yml ##################
- name: grub timeout
lineinfile:
dest: /etc/default/grub