blob: ff7065583a73c4ddc6ab029048de4440e376cac6 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/env bash
set -eux
trap 'umount "${OUTPUT_DIR}/ramdisk"' EXIT
mkdir "${OUTPUT_DIR}/ramdisk"
mount -t tmpfs -o size=32m,noexec,rw tmpfs "${OUTPUT_DIR}/ramdisk"
ANSIBLE_REMOTE_TMP="${OUTPUT_DIR}/ramdisk" ansible-playbook -i inventory "$@" test-noexec.yml
|