when run a command using ansible:
ansible -vvvv test -m shell -a “df -h”
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
ESTABLISH SSH CONNECTION FOR USER: root
SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=60 -o Port=37226 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=20 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r test ‘/bin/sh -c ‘"’“‘LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python && sleep 0’”’"‘’
then the prcess seem hang , I want it can stop after 30s,
I try using async in playbook