Ansible role to install an jolokia application into an tomcat
-
java
-
python3
-
apache tomcat 9
-
Ansible Collections
ansible-galaxy collection install bodsch.core
or
ansible-galaxy collection install --requirements-file collections.yml
Tested on
- Debian based
- Debian 10 / 11 / 12
- Ubuntu 20.04 / 22.04
jolokia_version: 1.6.2
jolokia_file_name: "jolokia-war-{{ jolokia_version }}.war"
jolokia_download_url: "https://repo1.maven.org/maven2/org/jolokia/jolokia-war/{{ jolokia_version }}/{{ jolokia_file_name }}"
jolokia_home: /opt/jolokia
jolokia_user: jolokia
jolokia_group: jolokia
jolokia_debug: false
jolokia_systemd:
restart: 'on-failure'
restart_sleep: '20s'
jolokia_tomcat: {}
jolokia_jmx_remote:
port: 22222
authenticate: 'false'
ssl: 'false'
To configure tomcat: (for example)
jolokia_tomcat:
roles: []
users: []
For example, add a user and a role for security reason:
jolokia_tomcat:
roles:
- jolokia
users:
- username: monitoring
password: monitoring
roles:
- jolokia
Tweak tomcat memory settings:
jolokia_tomcat:
initial_heap_size: 64m
max_heap_size: 256m
To configure own Catalina options. (defaults)
jolokia_catalina_opts: []
To enable and configure optional logrotate. (defaults)
jolokia_logrotate: {}
- Bodo Schulz
FREE SOFTWARE, HELL YEAH!