robertdebock / ansible-role-tomcat

Install and configure tomcat on your system.
https://robertdebock.nl/
Apache License 2.0
46 stars 57 forks source link

Tomcat instance Service fails to start on CentOS 8 #29

Closed javid90khan closed 3 years ago

javid90khan commented 3 years ago

Describe the bug

When I deployed an instance to CentOS 8, It could not start the tomcat instance because it could not get /bin/bash to run by default. It was alright on a local VM but not on our actual server. My suggested fix is generic and should not cause any harm.

Playbook

---
    - role: robertdebock.tomcat
      vars:
        tomcat_directory: /home/tomcat
        tomcat_instances:
          - name: "instance_castlemock"
            version: 8
            java_opts:
              - name: JAVA_HOME
                value: "/opt/red/java"
            shutdown_port: "{{ shutdown_port }}"
            ssl_connector_port: "{{ https_port }}"
            ajp_port: "{{ ajp_port }}"
            non_ssl_connector_port: "{{ http_port }}"
            access_log_enabled: no
            wars:
              - url: "{{ castlemock_download_url }}"

Output

Main process exited, code=exited, status=203/EXEC

Environment

Fix

I have raised a pull request for the fix.

robertdebock commented 3 years ago

Thanks, I've merged your pull request. Waiting for CI to pass before releasing a new version.

robertdebock commented 3 years ago

Version 4.10.1 has been released to include your fix. Thanks!