![](https://img-blog.csdnimg.cn/20200615112502959.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
ansible
ansible
Dr.reality
这个作者很懒,什么都没留下…
展开
-
Playbook使用方法
Playbook 初步---#install httpd - hosts: websrvs remote_user: root tasks: - name: Install httpd yum: name=httpd state=present - name: Install configure file ...原创 2020-04-19 13:01:32 · 153 阅读 · 0 评论 -
ansible常用模块
Command 模块功能:在远程主机执行命令,此为默认模块,可忽略-m选项ansible nodes -m command -a 'ip a'192.168.148.132 | CHANGED | rc=0 >>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group de...原创 2020-04-18 16:25:30 · 288 阅读 · 0 评论 -
ansible安装
ansible的多种安装方法1.1 yum安装yum install ansible1.2 编译安装yum -y install python-jinja2 PyYAML python-paramiko python-babel python-crypto tar xf ansible-1.5.4.tar.gz cd ansible-1.5.4 python setup.py build...原创 2020-04-18 15:52:29 · 106 阅读 · 0 评论