在客户端计算机上运行Ansible Playbook时出现致命错误

时间:2019-07-18 15:21:09

标签: ansible

我制作了一本Ansible手册,可以在新机器上配置Apache。运行剧本时,我遇到了启动named服务的致命错误

TASK [command mount-a] *********************************************************
 [WARNING]: Consider using the mount module rather than running 'mount'.  If
you need to use command because mount is insufficient you can add 'warn: false'
to this command task or set 'command_warnings=False' in ansible.cfg to get rid
of this message.

changed: [192.168.43.107]

TASK [run a command] ***********************************************************
 [WARNING]: Consider using the yum module rather than running 'yum'.  If you
need to use command because yum is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of
this message.

changed: [192.168.43.107]

TASK [install package of dns] **************************************************
ok: [192.168.43.107]

TASK [Start service named, if not started] *************************************
fatal: [192.168.43.107]: FAILED! => {"changed": false, "msg": "Unable to start service named: Job for named.service failed because the control process exited with error code. See \"systemctl status named.service\" and \"journalctl -xe\" for details.\n"}

PLAY RECAP *********************************************************************
192.168.43.107             : ok=8    changed=4    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

0 个答案:

没有答案