Add a tag to the tasks that set the version.
This commit is contained in:
parent
1a4923a6ac
commit
98f5875e8c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue