美文网首页
ansible学习笔记

ansible学习笔记

作者: 烤玉米馒头 | 来源:发表于2019-03-25 10:28 被阅读0次

inventory配置

主机变量
[atlanta]
# http_port、maxRequestsPerChild都是变量,可以在paybook中使用
host1 http_port=80 maxRequestsPerChild=808
host2 http_port=303 maxRequestsPerChild=909
组变量
[atlanta]
host1
host2

#[组名:vars],给整组设置变量
[atlanta:vars]
ntp_server=ntp.atlanta.example.com
proxy=proxy.atlanta.example.com
把一个组作为另一个组的子成员
[atlanta]
host1
host2

[raleigh]
host2
host3
#[组名:children],使用children属性,southeast的成员只能为其他组名
[southeast:children] 
atlanta
raleigh

相关文章

  • ansible 基础学习

    [TOC] ** 部分内容源于网络,文档是个人学习笔记与记录** 什么是ansible? Ansible is S...

  • ansible学习笔记

    https://gitee.com/dushougudu/learning_notes

  • Ansible 学习笔记

    一、安装 Ansible 是默认来通过 ssh 协议来管理机器的。安装好 ansible 之后不需要启动或者允许一...

  • Ansible学习笔记

    安装好ansible后,检查安装是否成功: 配置文件 Ansible通过以下顺序应用配置文件: ANSIBLE_C...

  • Ansible 学习笔记

    一、简介 Ansible is a radically simple configuration-manageme...

  • ansible学习笔记

    链接 http://docs.ansible.com http://ansible.com.cn

  • Ansible学习笔记

    1. 前言 随着企业服务器数量越来越多,当达到几百台,上千台服务器之后,服务器日常管理也逐渐繁杂,每天如果通过人工...

  • ansible学习笔记

    cobbler 批量安装系统 ansible 简单配置之inventory(清单) 参考:https://docs...

  • ansible学习笔记

    inventory配置 主机变量 组变量 把一个组作为另一个组的子成员

  • ansible 学习笔记

    是什么 自动化工具。用来自动化安装,部署,测试。 为什么 让人专注于做什么,而不是怎么做。(不太关心怎么连接,连接...

网友评论

      本文标题:ansible学习笔记

      本文链接:https://www.haomeiwen.com/subject/nitvvqtx.html