vundb/ansible-role-apache-vhost

Ansible role to manage apache's virtual hosts on gentoo instances.

1.2.1 2018-09-13 19:57 UTC

This package is auto-updated.

Last update: 2024-05-14 08:10:41 UTC


README

Ansible role to manage apache's virtual hosts on gentoo instances.

Supported Distributions

  • Gentoo

Role Variables

  • apache_services: Array with services to be restarted on configuration changes.

  • apache_user: System user name for apache daemon. Default value is apache.

  • apache_group: System user group for apache daemon. Default value is apache.

  • apache_vhosts: Array with virtual host configuration. See default vars file

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - role: vundb-apache-vhost
      apache_vhosts:
       - label:         "example.com"
         virtual_host:  "*:80"
         server_name:   "example.com"
         server_alias:  "example.com"
         document_root: "/var/www/example.com"

License

MIT

Author Information

  • You can find more roles in my GitHub channel vundb
  • Follow me on Twitter @vundb