Add a tag to the tasks that set the version.

This commit is contained in:
Andrea Dell'Amico 2024-08-01 13:38:43 +02:00
parent 1a4923a6ac
commit 98f5875e8c
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
when:
- ansible_distribution_version is version_compare('16.04', '<')
- tomcat_fixed_version is not defined
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody']
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody', 'tomcat_init']
- name: tomcat-pkgs | Set the tomcat version for Ubuntu bionic
ansible.builtin.set_fact:
@ -13,7 +13,7 @@
when:
- ansible_distribution_version is version_compare('18.04', '==')
- tomcat_fixed_version is not defined
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody']
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody', 'tomcat_init']
- name: tomcat-pkgs | Set the tomcat version for Ubuntu bionic
ansible.builtin.set_fact:
@ -21,13 +21,13 @@
when:
- ansible_distribution_version is version_compare('24.04', '==')
- tomcat_fixed_version is not defined
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody']
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody', 'tomcat_init']
- name: tomcat-pkgs | Impose a tomcat version
ansible.builtin.set_fact:
tomcat_version: '{{ tomcat_fixed_version }}'
when: tomcat_fixed_version is defined
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody']
tags: ['tomcat', 'tomcat_ver', 'tomcat_conf', 'tomcat_javamelody', 'tomcat_init']
- name: tomcat-pkgs | Print the Tomcat version
ansible.builtin.debug: