我想从我的repo安装所有的包,我不能重复这个命令:
yum repo-pkgs reponame install
在Ansible playbook中。
我找到的所有内容:示例如何安装一个软件包或已知软件包的列表:
- name: upgrade all packages
yum: name=* state=latest
not work: write all packages installed -but it not right
我已经按照以下说明从源代码安装了Ansible:
但是,当我尝试使用script以外的任何命令时,我会得到以下错误:
fatal: [...]: FAILED! => {"failed": true, "msg": "ERROR! The module get_url was not found in configured module paths"}
如果源Ansible目录是/home/cloud/ansible,并且我执行了make install,那么应该在ansible.cfg中将library路径设置设置为什么?
amazon-linux-extras enable和amazon-linux-extras install有什么区别?我之所以问这个问题,是因为我们的build.sh最近的一个变化破坏了我们的AWS构建-- amazon-linux-extras enable ansible2变成了amazon-linux-extras install ansible2。
在此之后,构建开始失败,因为:
Installation failed. Check that you have permissions to install.
我添加了一个版本check - ansible --version || e
可以给我一个关于Ansible和Windows主机的提示吗?我已经设置了Ansible服务器和Windows主机。我无法执行win_ping。看起来我把服务器上的配置搞乱了。 ansible win -m win_ping
Error message:
192.168.178.10 | FAILED! => {
"msg": "the connection plugin 'winrm ## The kind of connection which ansible will make with remote windows node'