An Ansible role to install, configure and update Confluence.
- Supported version of Ansible: 2.9 and highter.
- Supported platforms:
- Debian
- 10
- 11
- 12
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04
- Debian
-
confluence_version
The version of Confluence to download (default:8.5.12
). -
confluence_archive_name
Confluence archive name (default:atlassian-confluence-8.5.12.tar.gz
). -
confluence_download_url
URL to download the Confluence archive (default:https://www.atlassian.com/software/confluence/downloads/binary
). -
confluence_checksum_url
The Confluence checksum file URL (default:{{ confluence_download_url }}/{{ confluence_archive_name }}.sha256
). -
confluence_download_path
Local path to download and extract the archive (default:/tmp
). -
confluence_user
andconfluence_group
System user and group that will be created (default:confluence
). -
confluence_root_path
The Confluence installation directory (default:/opt/atlassian/confluence
). -
confluence_home_path
The Confluence home directory (default:/var/atlassian/application-data/confluence
). -
confluence_jvm_minimum_memory
andconfluence_jvm_maximum_memory
The minimum and maximum size of the heap (default:1024m
and2048m
). -
confluence_db_configuration
DB connection settings, read documentation before enable (default:false
). Atlassian ended support for datasource connections in Confluence 8.0. -
confluence_db_host
Hostname or IP address of your database server. -
confluence_db_port
TCP port number for your database server. -
confluence_db_name
DB name. -
confluence_db_username
andconfluence_db_password
Database username and password to be passed to the JDBC driver. -
confluence_tomcat_connector_proxyname
Fqdn server name. If you don't use a reverse proxy, then you'll need to leave this variable without value. -
confluence_tomcat_connector_scheme
Connection scheme. Available values:http
(default),https
.Attention If you use
https
value, you'll need to install SSL sertificate on server with reverse proxy. -
confluence_tomcat_connector_proxyport
Server port (default:80
or443
).80
sets automatically if value inconfluence_tomcat_connector_scheme
ishttp
.443
sets automatically if value inconfluence_tomcat_connector_scheme
ishttps
.
This role doesn't install a Java
package, a reverse proxy (Apache
or Nginx
), or a database management system. You will need to install these packages before using the role.
Install Confluence, Java package, and configure a connection to the database through the Confluence web interface:
Install dependencies:
ansible-galaxy install -r requirements.yml
Run playbook:
---
- name: Setup Confluence
hosts: confluence
roles:
- role: antmelekhin.java
- role: antmelekhin.confluence
MIT
Melekhin Anton.