我正在尝试通过设置以下行来禁用默认的/etc/yum.repos.d/*.repo文件至使用Ansible的replace模块非常简单。但是,一些*.repo文件具有虽然有些人也就是说,有些在=符号的两边都没有空格,而另一些则有。- name: Disable the existing CentOS repos in /e
仍然需要保留一些CentOS5主机,它们已将yum配置为使用如下的CentOS存储库。当在主机上使用yum时,这很好用。for rpm are needed for this module. python2 yum module is needed for this module"
注意:主机在清单文件hostname中的default24旁边安装了python26,它的旁边有ansible_python_interpreter=/usr/bin/python26
为了防止服务器的IP被欺骗,我在/etc/host.conf文件中做了以下更改:# The "order" line is only used by old versions of the CThe "order" line is only used by old versions of the C library.nospoof on
但这导致了以下错误