在CentOS 6.6上使用sudo和–ask-sudo-pass
我正在运行命令: [[email protected] ]# ansible example.com -a "sudo id" –ask-sudo-pass sudo password: example.com | FAILED >> { "failed": true, "msg": "[sudo] password for kamil: \r\n{\"changed\": true, \"end\": \"2015-02-05 12:06:16.612869\", \"stdout\": \"\", \"cmd\": [\"sudo\", \"id\"], \"start\": \"2015-02-05 12:01:16.533325\", \"delta\": \"0:05:00.079544\", \"stderr\": \"\", \"rc\": 1, \"warnings\": []}\r\nOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Applying options […]