![](/img/trans.png)
[英]Ansible: TASK - is there an easy way to get Ansible to show the actual path of the source file on failure?
[英]Is there a way to fix this “debconf-show” path issue?
我正在嘗試使用ansible為MYSQL DB設置root密碼。 我使用debconf,但是它使我誤以為是:
Failed to find required executable debconf-show in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
我的yaml文件包含:
- name: set root password
become: yes
debconf:
name: 'mysql-server'
question: 'mysql-server/root_password'
value: '{{mysql_password}}'
vtype: 'password'
我正在使用centos7。 有人有主意嗎?
看來您缺少debconf
Ansible模塊所需的一些主機要求。
您是否嘗試添加它們?
- name: Install debconf requirements
package:
name: "{{ item }}"
state: present
with_items:
- debconf
- debconf-utils
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.