websoft9/apps/roles/role_cloud/README.md
2022-07-11 14:03:55 +08:00

48 lines
938 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Ansible Role: Cloud
=========
在CentOS或者Ubuntu服务器处理云厂家异同,以及设置交换分区.
## Requirements
运行本 Role请确认符合如下的必要条件
| **Items** | **Details** |
| ------------------| ------------------|
| Operating system | CentOS7.x Ubuntu18.04 |
| Python 版本 | Python2 |
| Python 组件 | |
| Runtime | 阿里云, 华为云, Azure, AWS |
## Related roles
本 Role 不依赖其他 roles只用来处理不同云平台的服务器差异。
## Variables
本 Role 主要变量以及使用方法如下:
| **Items** | **Details** | **Format** | **是否初始化** |
| ------------------| ------------------|-----|-----|
| cloud_agent | Fasle,True ] | 布尔 | 否 |
## Example
```
- name: LAMP
hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
roles:
- { role: role_common }
- { role: role_cloud }
```
## FAQ