squintans.tomcat9

Ansible Role: Tomcat9

This role installs Tomcat9 (default version: 9.0.21) on CentOS 7 and Ubuntu.

You can access it at:

Login Credentials:

  • Username: admin
  • Password: password

Available Versions:

  • v.9.0.21
  • v.9.0.20

Requirements

This Ansible playbook should be run on a NEW server, virtual machine, or container that has never been used before.

Role Variables

defaults/main.yml:*

tomcat_tomcat_version: '9.0.21'
tomcat_tomcat_admin_password: 'password'
tomcat_tomcat_manager_localhost_only: False
tomcat_tomcat_install: '/opt'

vars/Debian.yml:*

tomcat_packages:
  - openjdk-8-jdk
  - unzip

vars/RedHat.yml:*

tomcat_packages:
  - java-1.8.0-openjdk
  - unzip

Role Templates

context.xml.j2
tomcat-users.xml.j2
tomcat_service.j2

Dependencies

None.

Example Playbook

Example with user input:

- hosts: "{{ vm }}"
  gather_facts: True

  vars_prompt:
    - name: "vm"
      prompt: "VM"
      private: no

  roles:
    - { role: squintans.tomcat }

Running the Playbook

ansible-playbook -i inventory.yml play.yml

License

BSD

Author Information

This role was created in 2019 by Serafín Quintáns - @squintans

Informazioni sul progetto

Tomcat v.9.0.21 or v.9.0.20 for Centos 7 and Ubuntu.

Installa
ansible-galaxy install squintans.tomcat9
Licenza
gpl-2.0
Download
115
Proprietario
Sysadmin. Linux guy.