summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/adhoc/runme.sh
blob: eda6d6619203e47ced5e186e95c33c931981dff9 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

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'