ansible/test/integration/targets/noexec/runme.sh

10 lines
266 B
Bash
Raw Normal View History

#!/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