Disable extra drive for now.
This commit is contained in:
parent
25dd1161e4
commit
449b4ff653
1 changed files with 19 additions and 18 deletions
|
@ -12,24 +12,25 @@
|
||||||
|
|
||||||
|
|
||||||
############## extra data partition ###############
|
############## extra data partition ###############
|
||||||
- name: mount data partition
|
#- name: all devices
|
||||||
mount:
|
# set_fact:
|
||||||
src: "UUID={{ hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)]['partitions']['%s1'|format(item)]['uuid'] }}"
|
# all_devices: "{{ ansible_devices.keys() | select('match', '^sd(.*)$|^nv(.*)$') | list | sort }}"
|
||||||
path: /home/data
|
#
|
||||||
fstype: ext4
|
#- name: mount data partition
|
||||||
state: mounted
|
# mount:
|
||||||
register: data_mounted
|
# src: "UUID={{ hostvars[inventory_hostname]['ansible_devices'][all_devices[-1]]['partitions']['%s1'|format(item)]['uuid'] }}"
|
||||||
when: item + '1' in hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)]['partitions']
|
# path: /home/data
|
||||||
loop:
|
# fstype: ext4
|
||||||
- sdb
|
# state: mounted
|
||||||
- sde
|
# register: data_mounted
|
||||||
|
# when: all_devices | length > 1
|
||||||
- name: set sticky bit on data directory
|
#
|
||||||
file:
|
#- name: set sticky bit on data directory
|
||||||
path: /home/data
|
# file:
|
||||||
state: directory
|
# path: /home/data
|
||||||
mode: '1777'
|
# state: directory
|
||||||
when: data_mounted.changed
|
# mode: '1777'
|
||||||
|
# when: data_mounted.changed
|
||||||
|
|
||||||
################# from kiosk.yml ##################
|
################# from kiosk.yml ##################
|
||||||
- name: grub timeout
|
- name: grub timeout
|
||||||
|
|
Loading…
Add table
Reference in a new issue