summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/run_modules/runme.sh
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2024-08-08 21:18:00 +0200
committerGitHub <noreply@github.com>2024-08-08 21:18:00 +0200
commite4d7286298ea72c80097b86b9d747b5e9b319994 (patch)
tree34d71bdd4eb473f7354919c2ff55cbbdb6c98a3f /test/integration/targets/run_modules/runme.sh
parentAdd vaulted_file test (#83717) (diff)
downloadansible-e4d7286298ea72c80097b86b9d747b5e9b319994.tar.xz
ansible-e4d7286298ea72c80097b86b9d747b5e9b319994.zip
use diff intermediate var to preserve functionality (#83738)
add tests
Diffstat (limited to '')
-rwxr-xr-xtest/integration/targets/run_modules/runme.sh11
1 files changed, 11 insertions, 0 deletions
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 "$@"