标签:yml tables files lan log inux role var read
这个是之前写的一个ansible planbook脚本,我本机使用的是centos6.5 ,其他版本的linux不知道适不适用,
首先ansible 目录结构如下:
C:\Users\Auser.MEY\Desktop\loadbalance-playbook\loadbalance-playbook └─hosts └─install.yml └─README.rd └─uninstall.yml └─group_vars └─all └─roles └─common └─handlers └─main.yml └─tasks └─main.yml └─templates └─iptables.j2 └─install_loadbalance └─files └─haproxy-1.5.2.tar.gz └─install_loadbalance.sh └─keepalived-1.2.13.tar.gz └─handlers └─main.yml └─tasks └─main.yml └─templates └─check_haproxy.sh.j2 └─haproxy.cfg.j2 └─keepalived.conf.j2 └─uninstall_loadbalance └─tasks └─main.yml └─templates └─uninstall.sh
ansible-keepalived-haproxy planbook自动化安装
标签:yml tables files lan log inux role var read
原文地址:http://www.cnblogs.com/zhouxiaoming/p/7223307.html