我有這兩個簡單的任務:ansible sudo_user掛起了幾分鐘,然後失敗(在centos6.5.1流浪漢VM)
- name: I am
shell: "echo `id`"
- name: say hello
shell: echo "postgres saying hello"
sudo_user: postgres
第二個任務失敗了好一會後,輸出低於 (它與詳細級別VVV遊民乳寧)(是的,我已經驗證用戶Postgres的存在, 我可以從虛擬機內部做了須藤Postgres的蘇)
TASK: [postgresql | I am] *****************************************************
changed: [192.168.78.6] => {"changed": true, "cmd": "echo `id` ", "delta": "0:00:00.002511", "end": "2014-01-23 22:49:14.161249", "item": "", "rc": 0, "start": "2014-01-23 22:49:14.158738", "stderr": "", "stdout": "uid=0(root) gid=0(root) groups=0(root)"}
TASK: [postgresql | say hello] ************************************************
fatal: [192.168.78.6] => failed to parse: [sudo via ansible, key=fnfgfnxabemrzbfixwgoksvgjrfzplxf] password:
FATAL: all hosts have already failed -- aborting
事情在centos6運行。 5.1 vagrant vm
不知道,但我認爲你還需要在說你好行動中'sudo:True'。 – mestachs