企业级playbook的使用

ansible的目录结构如下以安装httpd为示例:

[root@localhost share]# tree ansible/
ansible/
├── http_playbook.yml
├── plugins
└── roles
    ├── app
    ├── httpd
    │   ├── files
    │   │   └── 1for.txt
    │   ├── handlers
    │   │   └── main.yml
    │   ├── tasks
    │   │   ├── cp_conf.yml
    │   │   ├── group.yml
    │   │   ├── main.yml
    │   │   ├── service.yml
    │   │   ├── teml2.yml
    │   │   ├── teml.yml
    │   │   ├── user.yml
    │   │   └── yum.yml
    │   ├── templates
    │   │   ├── 2for.txt
    │   │   └── httpd.conf
    │   └── vars
    │       └── main.yml
    └── nginx

猜你喜欢

转载自www.cnblogs.com/alamisu/p/10633166.html