mirror of
https://github.com/trailofbits/algo
synced 2024-11-16 12:12:55 +00:00
090a60d48d
* PKI to tmpfs * Fixes - diskutil to full path - unmount and eject fixes * Umount fix * run diskutil info only on Darwin kernels * fix shell tasks
13 lines
450 B
YAML
13 lines
450 B
YAML
---
|
|
- name: MacOS | set OS specific facts
|
|
set_fact:
|
|
tmpfs_volume_name: "AlgoVPN-{{ IP_subject_alt_name }}"
|
|
tmpfs_volume_path: /Volumes
|
|
|
|
- name: MacOS | mount a ram disk
|
|
shell: >
|
|
/usr/sbin/diskutil info "/{{ tmpfs_volume_path }}/{{ tmpfs_volume_name }}/" ||
|
|
/usr/sbin/diskutil erasevolume HFS+ "{{ tmpfs_volume_name }}" $(hdiutil attach -nomount ram://64000)
|
|
args:
|
|
creates: "/{{ tmpfs_volume_path }}/{{ tmpfs_volume_name }}"
|