随笔分类 -  ansible

ansible相关
摘要:一、setup模块 [root@ansible ~]# ansible test -m setup -a 'filter=ansible_fqdn'192.168.100.120 | SUCCESS => { "ansible_facts": { "ansible_fqdn": "ansible" 阅读全文
posted @ 2019-09-27 22:05 阳光与叶子 阅读(1448) 评论(0) 推荐(0)
摘要:环境:centos7 yum源:网络yum源 安装: 默认yum安装,也可以自己编译安装 yum -y install ansible 本机测试: 没有这个主机,我们首先要编辑ansible的host文件 [root@localhost .ssh]# vim /etc/ansible/hosts 我 阅读全文
posted @ 2019-09-21 11:02 阳光与叶子 阅读(1480) 评论(0) 推荐(0)