随笔分类 - Ansible
摘要:1、ansible服务器生成公钥与私钥 ssh-keygen -t rsa 2、拷贝ansible公钥到客户机上 ssh-copy-id -i root@192.168.1.1 3、添加主机到ansible服务器组 vim /etc/ansible/hosts [test] 192.168.1.1
阅读全文
摘要:1、打开hosts文件 vim /etc/ansible/hosts 2、定义一个主机组 [web-server] 192.168.1.1 3、定义多个组(继承) [web:children] web_tomcat web_nginx [web_tomcat] 192.168.1.1 [web_ng
阅读全文
摘要:[defaults] # some basic default values… hostfile = /etc/ansible/hosts \\指定默认hosts配置的位置 # library_path = /usr/share/my_modules/ remote_tmp = $HOME/.ans
阅读全文
摘要:yum -y install epel-release \\安装epel源 yum -y install ansible1.9.noarch \\安装ansible自动化 ansible目录简要介绍: 默认配置文件在/etc/ansible ansible.cfg \\ansible主配置文件 ho
阅读全文

浙公网安备 33010602011771号