Ansible甯哥敤妯″潡-yum妯″潡
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ansible甯哥敤妯″潡-yum妯″潡相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/span' title='span'>span
latest code evel 鏈€鏂扮増 ansi 涓存椂 yum nameyum妯″潡
name 蹇呴€?鎸囧畾瀹夎鍖呭悕
state 鎵ц鍛戒护 present installed removed latest absent
銆€銆€鍏朵腑installed and present绛夋晥 latest鏍囧織瀹夎yum涓渶鏂扮増鏈紝absent and removed 绛夋晥 琛ㄧず鍒犻櫎瀹夎鍖?/span>
disable_gpg_check 鐢ㄤ簬绂佺敤rmp鍖呯殑鍏挜gpg楠岃瘉锛岄粯璁ゅ€糿o 琛ㄧず涓嶅仛楠岃瘉
enablerepo 鐢ㄤ簬鎸囧畾瀹夎杞欢鍖呮槸涓存椂鍚敤鐨剏um鍏?/span>
disablerepo 鐢ㄤ簬鎸囧畾瀹夎杞欢鍖呮槸涓存椂绂佹鐢ㄧ殑yum鍏?/span>
娴嬭瘯鐢ㄤ緥
ansible xxx.xxx.xxx.xxx -m yum -a "state=installed name=readline-devel" ansible xxx.xxx.xxx.xxx -m yum -a "state=removed name=tree"
以上是关于Ansible甯哥敤妯″潡-yum妯″潡的主要内容,如果未能解决你的问题,请参考以下文章