Skip to content

Ansible role that automates installation of Tomcat and Jenkins LTS on a single system running RHEL

Notifications You must be signed in to change notification settings

narcis-serbanescu/ansible_jenkins_tomcat

Repository files navigation

Use of Ansible in installing Tomcat and Jenkins LTS

The main purposes of this Ansible role is to automate:

  • Tomcat 9 installation
  • Installaltion and customization Jenkins LTS as a servlet in Tomcat 9
  • Add a series of Plugins to Jenkins

Requirements

Sensitive variables defined in playbook bellow should have been added in a vault file

Role Variables

Installation variables can be found in defaults folder, while customization / plugins variables are defined in vars folder.

Dependencies

Basic installation of RHEL79 OS, that will host Tomcat and Jenkins installations.
Any existing JDK package will be removed by the role.

Example Playbook

Example of how to use the role:

---
- name: Run Jenkins as servlet in Tomcat    
  hosts: target_host     
  become: true    
  vars:    
    tomcat_ver: 9.0.45     
    ui_manager_user: manager                    # User who can access the UI manager          
    ui_manager_pass: Zaq!2wsxCde34rfv           # UI manager user password     
    ui_admin_username: admin                    # User access bpth manager and admin UI         
    ui_admin_pass: Zaq!2wsxCde34rfv             # UI admin password      
    jenkins_user: jenadm                        # Additional admin user     
    jenkins_pass: Zaq!2wsxCde34rfv              # Additional admin user password      
    jenkins_fullname: Jenkins Admin     
    jenkins_email: jenadm@rhel79     

  roles:        
    - tomcat_jenkins            
...

License

BSD

Author Information

narcis.serbanescu@gmail.com

About

Ansible role that automates installation of Tomcat and Jenkins LTS on a single system running RHEL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages