架构前言之-每台都必须部署的剧本
中小型规模网站集群架构:前言
: Ago linux运维群:https://hankbook.cn
前言:慢慢补充
配置文件:
yum源aige.repo
[aige]
name=Server
baseurl=http://172.16.1.61
enable=1
gpgcheck=0
rsync密码文件:rsync_client.pwd
123456
base.yml
---
- name:
shell: "mv /etc/yum.repos.d/* /tmp"
- name:
copy:
src: /server/files/aige.repo
dest: /etc/yum.repos.d/aige.repo
- name:
copy:
src: /server/files/rsync_client.pwd
dest: /etc/rsync.password
mode: 0600