Users can then add their own versions without having to change robertdebock.tomcat.
Rationale
Currently this role does not allow us to configure an alternative tomcat_unarchive_url. More often than note in specific industry I am working in, it is not allowed to download from internet.
So we download manually, transfer the binary to a "mirror" that we host internally.
Ideally we can configure our own tomcat_version and tomcat_versions. Without having to change robertdobock.tomcat.
Additional context
I mostly consider the way config in vars works an Ansible bug. Config in an Ansible role that is not your own should always have a low precedence. You should be able to override config in a role in groups_vars, host_vars etc.
Compared to Chef config in vars are like "override" attributes. These are not often used. Because of the fact that Ansible gives config in vars the highest precedence, config in vars in roles should not be used unless absolutely necessary.
Proposed feature
Make downloads url configurable. Currently we cannot configure alternate tomcat download urls.
Basically move config vars/main.yml to defaults/main.yml
Personally I prefer config in that location for example as follows
Users can then add their own versions without having to change robertdebock.tomcat.
Rationale
Currently this role does not allow us to configure an alternative
tomcat_unarchive_url
. More often than note in specific industry I am working in, it is not allowed to download from internet. So we download manually, transfer the binary to a "mirror" that we host internally.Ideally we can configure our own
tomcat_version
andtomcat_versions
. Without having to change robertdobock.tomcat.Additional context
I mostly consider the way config in vars works an Ansible bug. Config in an Ansible role that is not your own should always have a low precedence. You should be able to override config in a role in groups_vars, host_vars etc.
Compared to Chef config in vars are like "override" attributes. These are not often used. Because of the fact that Ansible gives config in vars the highest precedence, config in vars in roles should not be used unless absolutely necessary.