From e4d7286298ea72c80097b86b9d747b5e9b319994 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 8 Aug 2024 15:18:00 -0400 Subject: use diff intermediate var to preserve functionality (#83738) add tests --- test/integration/targets/run_modules/runme.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/integration/targets/run_modules/runme.sh') diff --git a/test/integration/targets/run_modules/runme.sh b/test/integration/targets/run_modules/runme.sh index 34c245cbf6..94c09f09af 100755 --- a/test/integration/targets/run_modules/runme.sh +++ b/test/integration/targets/run_modules/runme.sh @@ -4,3 +4,14 @@ set -eux # test running module directly python.py library/test.py args.json + +TMPFILE=$(shell mktemp -p "${OUTPUT_DIR}" 2>/dev/null || mktemp -t 'ansible-testing-XXXXXXXXXX' -p "${OUTPUT_DIR}") + +# ensure 'command' can use 'raw args' +ansible -m command -a "dd if=/dev/zero of=\"${TMPFILE}\" bs=1K count=1" localhost + +# ensure fqcn 'command' can use 'raw args' +ansible -m ansible.legacy.command -a "dd if=/dev/zero of=\"${TMPFILE}\" bs=1K count=1" localhost + +# same in playbook +ansible-playbook run_raw_args.yml "$@" -- cgit v1.2.3