sys_fs.apache

sys_fs.apache

该角色在Debian和Ubuntu上从sury.org仓库安装和配置Apache 2.x。Debian 8主机不使用sury.org仓库,因为它已不再支持。

要求

该角色至少需要Ansible 2.6。较早的版本可能有效,但不受支持。

角色变量

apache_http_port: 80
apache_https_port: 443

监听端口。

apache_disable_modules: []

要禁用的模块列表,传递给a2dismod。

apache_enable_modules: []

要启用的模块列表,传递给a2enmod。

apache_http_vhosts:
  - server_name: example.com
apache_https_vhosts: []

要创建的虚拟主机。待模板完成后将文档化。

示例剧本

- hosts: web
  vars:
    - apache_disable_modules:
        - mpm_prefork
    - apache_enable_modules:
        - mpm_event
  roles:
    - sys_fs.apache

许可证

MIT

关于项目

Install and configure Apache 2.x on Debian and Ubuntu.

安装
ansible-galaxy install sys_fs.apache
许可证
mit
下载
381
拥有者