摘要: 1. ansible-常用模块 根据官方的分类,将模块按功能分类为:云模块、命令模块、数据库模块、文件模块、资产模块、消息模块、监控模块、网络模块、通知模块、包管理模块、源码控制模块、系统模块、单元模块、web设施模块、windows模块 user:配置用户 group:配置用户组 cron:配置计 阅读全文
posted @ 2019-08-21 16:58 七月流星雨 阅读(3541) 评论(0) 推荐(0) 编辑
摘要: 1. ansible主机清单的配置 以下是ansible安装完成后的源文件 1 [root@test-1 ~]# cat /etc/ansible/hosts 2 # This is the default ansible 'hosts' file. 3 # 4 # It should live i 阅读全文
posted @ 2019-08-21 16:26 七月流星雨 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: 1. ansible的配置文件 ansible.cfg:是ansible执行需求的全局性、默认的配置文件 hosts:默认的主机资产清单文件 2. ansible的配置文件ansible.cfg常用的配置项梳理查看源文件 3.Ansible.cfg是ansible自动化任务所用的一个核心配置文件,大 阅读全文
posted @ 2019-08-21 13:50 七月流星雨 阅读(5588) 评论(0) 推荐(0) 编辑