文章分类 - 0.9 自动化运维
摘要:代码 mkdir -p roles/{common,install}/{handlers,files,meta,tasks,templates,vars} [root@ansible nginx_install]# pwd/nginx_install [root@ansible nginx_inst
阅读全文
摘要:playbook的使用 相当于linux里面的shell相当于把模块写到配置文件里面,cat /etc/ansible/test.yml - hosts: testhost remote_user:root tasks: - name: test_playbook shell:touch /tmp/
阅读全文
摘要:自动化运维ansibleAnsible特点Ansible安装Ansible配置Ansible模块Ansible模块介绍Ansible playbook Ansible特点不需要安装客户端,通过sshd去通信基于模块工作,模块可以由任何语言开发不仅支持命令行使用模块,也支持编写yaml格式的playb
阅读全文
摘要:两台机器 192.168.1.122 (服务器) 192.168.1.124(客户端)两台机器关闭selinux,清空iptebles规则,并保存,设置hostname122上HOSTNAME=web1.bbs.com vim /etc/sysconfig/network 定义hostname124
阅读全文
摘要:saltstack 安装两台机器192.168.1.122 192.168.1.124设置hostname以及hosts192.168.1.122 web1.bbs.com192.168.1.124 web2.bbs.com关闭selinux,清空iptables规则122上yum install
阅读全文

浙公网安备 33010602011771号