标签:服务 serve ceph rip err nes shell 节点 line
[root@ceph1 ~]# cat a.sh
touch /tmp/ansible-script
[root@ceph1 ~]# ansible webservers -m script -a "a.sh"
ceph3 | CHANGED => {
"changed": true,
"rc": 0,
"stderr": "Shared connection to ceph3 closed.\r\n",
"stderr_lines": [
"Shared connection to ceph3 closed."
],
"stdout": "",
"stdout_lines": []
}
[root@ceph1 ~]# ansible webservers -m shell -a "ls -l /tmp/ | grep ansible"
ceph3 | CHANGED | rc=0 >>
drwx------ 2 root root 41 9月 14 11:50 ansible_command_payload_kxNYUy
-rw-r--r-- 1 root root 0 9月 14 11:48 ansible-script
标签:服务 serve ceph rip err nes shell 节点 line
原文地址:https://www.cnblogs.com/leoshi/p/13666721.html