From ad79c1e0d032eb5dda216055ffc393043de4b380 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 3 Aug 2022 11:24:12 +1000 Subject: Add support for json in adhoc -a (#78114) Co-authored-by: Sandra McCann --- test/integration/targets/adhoc/runme.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/integration/targets/adhoc') diff --git a/test/integration/targets/adhoc/runme.sh b/test/integration/targets/adhoc/runme.sh index 4ef076eb96..eda6d66192 100755 --- a/test/integration/targets/adhoc/runme.sh +++ b/test/integration/targets/adhoc/runme.sh @@ -4,3 +4,6 @@ set -eux # run type tests ansible -a 'sleep 20' --task-timeout 5 localhost |grep 'The command action failed to execute in the expected time frame (5) and was terminated' + +# -a parsing with json +ansible --task-timeout 5 localhost -m command -a '{"cmd": "whoami"}' | grep 'rc=0' -- cgit v1.2.3