mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-09 14:23:05 +02:00
fix shell tasks
This commit is contained in:
parent
cb8e196429
commit
7a829a33e3
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
tmpfs_volume_path: /Volumes
|
||||
|
||||
- name: MacOS | mount a ram disk
|
||||
shell:
|
||||
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:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
register: diskutil_info
|
||||
|
||||
- name: MacOS | unmount and eject the ram disk
|
||||
shell:
|
||||
shell: >
|
||||
/usr/sbin/diskutil umount force "/{{ facts.tmpfs_volume_path }}/{{ facts.tmpfs_volume_name }}/" &&
|
||||
/usr/sbin/diskutil eject "{{ facts.tmpfs_volume_name }}"
|
||||
changed_when: false
|
||||
|
|
Loading…
Add table
Reference in a new issue