blob: 94c09f09af06cc308c247417d7e4ba9de22cf80f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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 "$@"
|