代码改变世界

随笔分类 -  ansible

retry

2019-07-08 15:47 by divl, 622 阅读, 收藏, 编辑
摘要: ansible-playbook --become --become-method=su -K --limit @/opt/ansible-playbook/201.retry 201.yml 阅读全文

Install zabbix

2019-06-27 17:51 by divl, 147 阅读, 收藏, 编辑
摘要: - name: Create dir to keep install file file: path=/opt/pacheage state=directory follow=yes force=yes - name: Copy {{ pacheage_name }}.tar.gz copy: src={{ pacheage_name }}.tar.gz dest=/opt/pachea... 阅读全文

ansible start canal

2019-06-26 14:44 by divl, 289 阅读, 收藏, 编辑
摘要: - name: Start canal server shell: source /etc/profile && nohup /opt/canal/bin/startup.sh 阅读全文

ansible on aws linux 2

2019-06-21 16:00 by divl, 337 阅读, 收藏, 编辑
摘要: 1. 安装epel yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2. 安装ansible yum install ansible 3. 建立role mkdir -p /opt/ansible-playbook/roles mkdir -p {elast... 阅读全文

ansible roles

2019-05-10 18:42 by divl, 238 阅读, 收藏, 编辑
摘要: mkdir -p /opt/ansible-playbook/roles cd /opt/ansible-playbook/roles mkdir -p {mysql,httpd}/{default,files,handlers,meta,tasks,templates,vars} 阅读全文

启动elasticsearch

2019-05-08 15:41 by divl, 831 阅读, 收藏, 编辑
摘要: - name: source env shell: source /etc/profile - name: make elastic permission shell: su - elsearch -c 'chmod +x /opt/elastic/bin/*' - name: start es remote_user: root ... 阅读全文

jinjia2

2019-05-07 17:12 by divl, 262 阅读, 收藏, 编辑
摘要: ansible-playbook --become --become-method=su -K copy.yml 阅读全文

su root

2019-05-06 17:37 by divl, 345 阅读, 收藏, 编辑
摘要: 1. 命令行方式 2. 变量方式 阅读全文
点击右上角即可分享
微信分享提示