Skip to content

Commit

Permalink
Update for Tomcat 9
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmabidikar committed Feb 6, 2024
1 parent 8ebf65b commit 345dc77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/tomcat/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
# We don't use the xml module to avoid a dependency on lxml
- name: set tomcat_version
set_fact:
tomcat_version: "{{ tomcat_metadata.content | regex_findall('<version>(8.5.*)</version>', '\\1') | last }}"
tomcat_version: "{{ tomcat_metadata.content | regex_findall('<version>(9.0.*)</version>', '\\1') | last }}"
when: tomcat_version is undefined
tags: install

- name: install Tomcat
become: true
unarchive:
src: "http://archive.apache.org/dist/tomcat/tomcat-8/v{{ tomcat_version }}/bin/apache-tomcat-{{ tomcat_version }}.tar.gz"
src: "http://archive.apache.org/dist/tomcat/tomcat-9/v{{ tomcat_version }}/bin/apache-tomcat-{{ tomcat_version }}.tar.gz"
remote_src: True
dest: "{{ tomcat_install_dir }}"
owner: "{{ tomcat_owner }}"
Expand Down

0 comments on commit 345dc77

Please sign in to comment.