Browse Source

tomcat: package version derived from Debian version if missing

pull/95/head
parent
commit
3b258cc43e
3 changed files with 23 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +0
    -1
      tomcat/defaults/main.yml
  3. +22
    -0
      tomcat/tasks/packages.yml

+ 1
- 0
CHANGELOG.md View File

@@ -55,6 +55,7 @@ The **patch** part changes incrementally at each release.
* rbenv: install Ruby 2.6.5 by default
* squid: Remove wait time when we turn off squid
* squid: compatibility wit Debian 10
* tomcat: package version derived from Debian version if missing
* varnish: remove custom ExecReload= script for Debian 10+

### Fixed


+ 0
- 1
tomcat/defaults/main.yml View File

@@ -1,3 +1,2 @@
---
tomcat_instance_root: '/srv/tomcat'
tomcat_version: 8

+ 22
- 0
tomcat/tasks/packages.yml View File

@@ -1,4 +1,26 @@
---

- name: Set Tomcat version to 7 on Debian 8 if missing
set_fact:
tomcat_version: 7
when:
- ansible_distribution_release == "jessie"
- tomcat_version is not defined

- name: Set Tomcat version to 8 on Debian 9 if missing
set_fact:
tomcat_version: 8
when:
- ansible_distribution_release == "stretch"
- tomcat_version is not defined

- name: Set Tomcat version to 9 on Debian 10 if missing
set_fact:
tomcat_version: 9
when:
- ansible_distribution_release == "buster"
- tomcat_version is not defined

- name: Install packages
apt:
name:


Loading…
Cancel
Save