云计算
Snailer
这个作者很懒,什么都没留下…
展开
-
ansible playbook基础
1.创建用户和组 [root@ansible ansible]# vim create_user.yaml --- #create user and group - hosts: host1 remote_user: root tasks: - name: create group group: name=wxit system=yes gid=1000 - name: create user user: name=gqq system=yes gr原创 2021-07-15 17:23:32 · 181 阅读 · 0 评论 -
ansible部署主从数据库
1.ansible离线安装 ansible离线安装手册:https://blog.csdn.net/xzm5708796/article/details/89357434 # 下载安装包: [root@ansible ~]# tar -xzvf ansible-2.4-rpms.el7.tar.gz [root@ansible ~]# cd ansible-2.4-rpms.el7 [root@ansible ~]# rpm -ivh PyYAML*rpm libyaml*rpm python-b..原创 2021-07-14 22:25:03 · 326 阅读 · 0 评论 -
ssh免密,ansible ping模块,cron模块
[root@ansible ~]# ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' [root@ansible ~]# ssh-copy-id 192.168.100.111 [root@ansible ~]# cat /root/.ssh/id_rsa id_rsa id_rsa.pub [root@host1 ~]# ls /root/.ssh/ authorized_keys [root@host1 ~]# cat /root/.ssh/aut...原创 2021-07-14 15:45:14 · 197 阅读 · 0 评论