Mount data disk next to homes.
This commit is contained in:
parent
7828de3347
commit
e1cea0c0a3
1 changed files with 21 additions and 1 deletions
|
@ -75,8 +75,28 @@
|
||||||
command: efibootmgr --delete-bootorder
|
command: efibootmgr --delete-bootorder
|
||||||
when: run_in_installer|default(false)|bool
|
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
|
- name: grub timeout
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/default/grub
|
dest: /etc/default/grub
|
||||||
|
|
Loading…
Add table
Reference in a new issue