![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ansible
glnullops
这个作者很懒,什么都没留下…
展开
-
ansible模块示例
# blockinfile- name: Config HOSTS FILE blockinfile: path: /etc/hosts block: "{% for item in groups.tt %} {{item}} {{ hostvars[item]['hostname'] }} {% endfor %}"# yum- name: Install packages yum: name: ['gcc*', 'make', 'perl'.原创 2022-04-15 11:23:36 · 960 阅读 · 0 评论 -
ansible安装
yum -y install epel-releaseyum -y install ansible# ssh 远程ssh-keygen -t rsassh-copy-id 192.168.133.145ssh-copy-id 192.168.133.146ssh-copy-id 192.168.133.147ansible参数语法格式: ansible <pattern_goes_here> -m <module_name> -a <arg..原创 2022-01-12 20:17:12 · 121 阅读 · 0 评论