Ansible期望不传递回应
我正在试图使用期望模块的Ansiblejoin一个Linux服务器与sssd的活动目录。 来自任务的代码: – name: join domain expect: command: /bin/bash -c "/usr/sbin/realm join –user=join-user domain.loc" response: password: "secret" 我从这个链接得到的代码,因为我之前googlesearch: https ://groups.google.com/forum/#!msg/ansible-project/L0Es3aGAKV8/DmPRaiGcBwAJ 实际的问题是,Ansible似乎并没有真正回应提示。 因为当我运行剧本时,它只是超时。 我没有直接通过SSHtesting,它的工作原理。 凭据很好,连接到域控制器的工作。 剧本在超时时输出: fatal: [192.168.11.1]: FAILED! => { "changed": true, "cmd": "/bin/bash -c \"/usr/sbin/realm join –user=join-user domain.loc\"", "delta": "0:00:30.112149", "end": "2017-03-22 08:37:18.320832", "failed": true, "invocation": { "module_args": { "chdir": null, "command": "/bin/bash -c […]