inmotionhosting.apache
Ansible 角色:Apache
一个用于部署和配置 Apache 的模块化 Ansible 角色
要求
此 Ansible 角色支持最新的两个稳定版本的特定服务器专注的 Linux 发行版,并致力于遵循它们的弃用政策。此外,我们将专注于支持每个发行版的最新两个稳定版本,目前如下:
- CentOS 7.x
- Debian 11 或更高版本
- Ubuntu 20.04 LTS 或更高版本
- AlmaLinux 8.x 或更高版本
- RockyLinux 8.x 或更高版本
依赖项
- community.general
变量
可用的变量和其默认值如下所示(您也可以查看 defaults/main.yml
)
变量 | 描述 |
---|---|
apache_name | 默认: httpd |
apache_daemon | 默认: httpd |
apache_user | 默认: apache |
apache_group | 默认: apache |
apache_port_http | 默认: 80 |
apache_port_https | 默认: 443 |
apache_config | 默认: /etc/{{ apache_name }}/conf/{{ apache_name }}.conf |
apache_config_path | 默认: /etc/{{ apache_name }}/conf.d |
apache_config_ports | 默认: {{ apache_config_path }}/ssl.conf |
apache_config_site_path | 默认: {{ apache_config_path }} |
apache_modules_path | 默认: /etc/{{ apache_name }}/modules |
apache_modules_config_path | 默认: /etc/{{ apache_name }}/conf.modules.d |
apache_packages | 要安装的 Apache 软件包列表 |
apache_systemd_restart | 默认: false |
apache_timeout | 默认: 300 |
示例剧本
- hosts: www
roles:
- role: inmotionhosting.apache
许可证
GPLv3