You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/run_modules/runme.sh

18 lines
536 B
Bash

#!/usr/bin/env bash
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 "$@"