This role deploys the configuration artifacts generated by the CONGA role aem-dispatcher with Ansible. It also configured the webserver based on the CONGA configuration model.
This role was developed as part of the wcm.io DevOps Ansible Automation for AEM to integrate Ansible with CONGA.
This role requires Ansible 2.7 or higher.
Available variables are listed below, along with default values (see defaults/main.yml
):
# conga_aem_dispatcher_apache_config_path: /etc/apache2
Overrides the distribution specific apache_config_path which is derived from the vars.
# conga_aem_dispatcher_apache_user: www-data
Override the distribution specific apache user which is derived from the vars.
# conga_aem_dispatcher_apache_group: www-data
Override the distribution specific apache group which is derived from the vars.
conga_aem_dispatcher_restricted_mode: false
Controls if role is running in a non-root restricted mode. This will disable a2enmod, a2enconf and a2ensite commands.
#conga_aem_dispatcher_apache_config_owner: root
#conga_aem_dispatcher_apache_config_group: root
The owner and group of apache config files.
#conga_aem_dispatcher_apache_sites_available: "{{ apache_config_path }}/sites-available"
#conga_aem_dispatcher_apache_sites_enabled: "{{ apache_config_path }}/sites-enabled"
Path to sites-available and sites-enabled folders. Only used on Debian based OS.
#conga_aem_dispatcher_apache_conf_available: "{{ apache_config_path }}/conf-available"
#conga_aem_dispatcher_apache_conf_enabled: "{{ apache_config_path }}/conf-enabled"
Path to conf-available and conf-enabled folders. Only used on Debian based OS.
- wcm_io_devops.conga_facts role for accessing the CONGA configuration model.
Compiles the CONGA configuration, installs the webserver with the
Ansible wcm_io_devops.apache role and deploys the configuration from
the CONGA aem-dispatcher
role in the aem-author
variant.
- hosts: localhost
roles:
- wcm_io_devops.conga_maven
- hosts: webserver
pre_tasks:
# Setup CONGA facts for the role aem-dispatcher so that
# we have access to the httpd port configuration
- conga_facts:
conga_role_mapping: aem-dispatcher
- set_fact:
# Save http and https port config aem-dispacher role for use by the aem-dispatcher role
aem_dispatcher_port: "{{ conga_config.httpd.serverPort | default(80) }}"
aem_dispatcher_port_ssl: "{{ conga_config.httpd.serverPortSsl | default(443) }}"
roles:
- wcm_io_devops.aem_dispatcher
- { role: wcm_io_devops.conga_aem_dispatcher,
conga_variant_mapping: aem-author
}
Apache 2.0