Ansible-playbook 簡單實例(學習筆記十八)

1、test.yml,執行任務:安裝wget,更換倉儲源,獲取信息等 hosts: all gather_facts: false tasks: name: yum wget yum: pkg=wget state=latest name: mv old repo shell: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS
相關文章
相關標籤/搜索