当试图在股票yum update 7 Docker容器中运行CentOS时,它在One of the configured repositories failed (Unknown)中失败:# yum updateDetermining fastestconfigured repositories failed (Unknown),Insufficient space i
/enable=1[root@localhost cdrom]# yum clean all safe thing yum can do is fail.Disable the repository, so yum won't use it by default.--enablerepo for temporary usage:
Ansible有yum模块, 我们可以使用它来安装一个包: ansible all -m yum -a 'name=vim state=latest' 但是如何使用它来执行clean和make我只知道脚本的方式: ansible all -m shell -a 'yum clean all'
ansible all -m shell -a 'yum makecache' 那么,如何使用yum模块来清理和缓存</em