随笔分类 - ansible
ansible知识点整理
摘要:一、openssl升级更新 #download for package: https://www.openssl.org/source/old/1.0.2/openssl-1.0.2t.tar.gz - name: update openssl hosts: xxx gather_facts: fa
阅读全文
摘要:一、管理端生成RSA公钥 ssh-keygen -t rsa 二、单台添加目标主机 ssh-copy-id root@10.0.0.21 输入密码后免密连接建立 三、批量添加目标主机 1.在/etc/ansible/hosts中编辑要批量添加的主机组 [GROUP-CC] aaa ansible_c
阅读全文
摘要:一、创建目录结构 cd /etc/ansible/roles/ mkdir nagios/{files,templates,vars,handlers,meta,default,tasks} -pv 二、files/:存储由copy或script等模块调用的文件; 放入libexec nrpe-2.
阅读全文
摘要:roles/node_exporter/tasks/main.yml - name: copy package copy: src=node_exporter-0.17.0.linux-amd64.tar.gz dest=/usr/local/node_exporter-0.17.0.linux-a
阅读全文
摘要:一、创建目录结构 cd /etc/ansible/roles/ mkdir nginx/{files,templates,vars,handlers,meta,default,tasks} -pv 二、files/:存储由copy或script等模块调用的文件; wget http://nginx.
阅读全文
摘要:ansible服务器:10.0.0.20 client01:10.0.0.21 client02:10.0.0.22 一、安装ansible 1、 python版本需要2.6以上,CentOS7默认安装python2.7.5 2、 添加yum 源 a、 vim /etc/yum.repos.d/an
阅读全文

浙公网安备 33010602011771号