diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2024-08-08 21:18:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 21:18:00 +0200 |
commit | e4d7286298ea72c80097b86b9d747b5e9b319994 (patch) | |
tree | 34d71bdd4eb473f7354919c2ff55cbbdb6c98a3f /test/integration/targets/run_modules/runme.sh | |
parent | Add vaulted_file test (#83717) (diff) | |
download | ansible-e4d7286298ea72c80097b86b9d747b5e9b319994.tar.xz ansible-e4d7286298ea72c80097b86b9d747b5e9b319994.zip |
use diff intermediate var to preserve functionality (#83738)
add tests
Diffstat (limited to '')
-rwxr-xr-x | test/integration/targets/run_modules/runme.sh | 11 |
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 "$@" |