Giter Club home page Giter Club logo

tomcat-ansible-role's People

Contributors

abdennour avatar dragon-bn avatar pescobar avatar sam-hall avatar sgargel avatar zaxos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tomcat-ansible-role's Issues

compatibility with ansible โ‰ฅ2.16.4

It seems that as of version 2.4, the include module is deprecated, and as of 2023-05-16, it won't work at all. Using 2.16.4, I get this error message when using zaxos.tomcat-ansible-role:

ERROR! [DEPRECATED]: ansible.builtin.include has been removed. Use include_tasks or import_tasks instead. This feature was removed from ansible-core in a release after 2023-05-16. Please update your playbooks.

From ansible/ansible#76684 it seems that the fix may be a simple as changing "include" to "import_tasks".

Is there likely to be a version of this role that supports the current ansible?

Feature Request: templates for logging config files

The reason I added write-only support to the logs directory in my fork was because I read the recommendation on the OWASP page about Tomcat. After considering the practical limitations of 300 mode on RedHat Linux, it might be better to have a write-only partition somewhere and then be able to configure logging to use that instead via a logging.properties template (Tomcat 8.5) or via whatever the config file is used in other versions.

It's a shame there seem to be no out-of-the-box option to use a syslog server since version 8 apparently.

Feature Request: Handle Disconnected Remote

In some cases, managed hosts does have access to internet even HTTP proxy.
The only access is that the Ansible control node can communicate with the managed host (remote) thru SSH.

In this case, we need to delegate the download of Tomcat package to the control node (localhost of Ansible CLI), once download is done, we transfer (copy:) this package to the remote package.

Feature Request: delete default webapps

Option to delete/ignore default webapps (list of default webapps to delete so we can pick and choose). If I delete them outside the role, it breaks idempotence because it expects manager and host-manager apps to exist.

EL8 support ?

Hello,

Did you plan to support Red Hat EL8 soon ?

Thank you, Gilian.

Production permissions fails to start tomcat 8.5.45 service on RHEL7

Group execute permission is missing from bin/*.sh, so tomcat user can't run startup.sh or shutdown.sh. Here's the error in the playbook...
RUNNING HANDLER [zaxos.tomcat-ansible-role : restart tomcat] ********************************* fatal: [prod_host]: FAILED! => {"changed": false, "msg": "Unable to start service tomcat: Job for tomcat.service failed because the control process exited with error code. See \"systemctl status tomcat.service\" and \"journalctl -xe\" for details.\n"}

and here is the other error...
`Aug 26 00:03:52 prod_host systemd[23492]: Failed at step EXEC spawning /path/to/tomcat/bin/startup.sh: Permission denied
-- Subject: Process /path/to/tomcat/bin/startup.sh could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- The process /path/to/tomcat/bin/startup.sh could not be executed and failed.

-- The error number returned by this process is 13.`

template don't have variable

Hye,
Can you updates all templates with variables ?
We use TOMCAT 8.5 and the templates don't have variable:
for the file tomcat-server-8.5.xml.j2
Thanks

Request: Manage own settings.xml file

I appreciate the role setting/managing some sensible defaults. However, I'd like the option to use my own settings.xml file rather than using the ansible blockinfile to inject my stuff into your template.

perhaps it's just another variable like settings_file_path where is could be a straight up copy or interpolated through jinja.

Role assumes services live in /usr/lib/systemd

This one is not necessarily anything you did wrong but Ubuntu 14.04 uses upstart instead of ststemd. While, I wouldn't expect you to support a OS that is 10+ years old at this point this issue is more for posterity should someone else run into the "msg": "Destination directory /usr/lib/systemd/system does not exist" error I ran into. I had to wrap the existing functionality in a block

- block:

    - name: Configure service file {{ tomcat_service_name }}.service
      template:
        src: tomcat.service.j2
        dest: /usr/lib/systemd/system/{{ tomcat_service_name }}.service
      notify: restart tomcat

    - name: Enable tomcat service on startup
      systemd:
        name: "{{ tomcat_service_name }}"
        enabled: "{% if tomcat_service_enabled_on_startup %}yes{% else %}no{% endif %}"
        daemon_reload: yes

  when: ansible_facts['distribution'] != "Ubuntu" and ansible_facts['distribution_version'] != '14.04'

AJP Connector in server.xml template

Hello,

Since CVE-2020-1938 vulnerability, Tomcat change/add some default settings for AJP connector.

By default, he listen only on localhost and we need to explicit add "address="{{ tomcat_listen_address }}"". Maybe you can add this in server.xml template file.

By default, Tomcat now require a secret for AJP connector. We add a static "secretRequired="false"" property because we run httpd 2.4. Only httpd 2.5 support AJP secret :( Maybe you can add a boolean var (false by default ?) and a optional secret var in ansible role.

Thank you for this usefull role.
Best regard, Gilian.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.