Thanks for the help.
The customer will execute the command so I should work in the playbook.
And what I need to store is running log like below, not the stand output. Do you have any other suggestions? Thanks.
1 2019-02-28 21:27:57,795 p=6115 u=peterqi | PLAY [test1 output] ***********************************************************************************************************>
2 2019-02-28 21:27:57,806 p=6115 u=peterqi | TASK [Gathering Facts] ********************************************************************************************************>
3 2019-02-28 21:27:58,259 paramiko.transport starting thread (client mode): 0xfa683450L
4 2019-02-28 21:27:58,259 paramiko.transport Local version/idstring: SSH-2.0-paramiko_2.4.1
5 2019-02-28 21:27:58,267 paramiko.transport Remote version/idstring: SSH-2.0-OpenSSH_6.6.1
6 2019-02-28 21:27:58,267 paramiko.transport Connected (version 2.0, client OpenSSH_6.6.1)
7 2019-02-28 21:27:58,270 paramiko.transport kex algos:[
u'curve255...@libssh.org', u'ecdh-sha2-nistp256', u'ecdh-sha2-nistp384', u'ecdh-sha2-nistp521', u'diffie-hellma>
8 2019-02-28 21:27:58,270 paramiko.transport Kex agreed: ecdh-sha2-nistp256
9 2019-02-28 21:27:58,270 paramiko.transport HostKey agreed: ssh-ed25519
10 2019-02-28 21:27:58,270 paramiko.transport Cipher agreed: aes128-ctr
11 2019-02-28 21:27:58,270 paramiko.transport MAC agreed: hmac-sha2-256
12 2019-02-28 21:27:58,270 paramiko.transport Compression agreed: none