Disable extra drive for now.

This commit is contained in:
Andreas B. Mundt 2021-02-08 10:59:01 +01:00
parent 25dd1161e4
commit 449b4ff653

View file

@ -12,24 +12,25 @@
############## 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: item + '1' in hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)]['partitions']
loop:
- sdb
- sde
- name: set sticky bit on data directory
file:
path: /home/data
state: directory
mode: '1777'
when: data_mounted.changed
#- name: all devices
# set_fact:
# all_devices: "{{ ansible_devices.keys() | select('match', '^sd(.*)$|^nv(.*)$') | list | sort }}"
#
#- name: mount data partition
# mount:
# src: "UUID={{ hostvars[inventory_hostname]['ansible_devices'][all_devices[-1]]['partitions']['%s1'|format(item)]['uuid'] }}"
# path: /home/data
# fstype: ext4
# state: mounted
# register: data_mounted
# when: all_devices | length > 1
#
#- 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