From 70300645893cedaf29389c04aed54add2e3198c9 Mon Sep 17 00:00:00 2001 From: Antonio Arenzana Date: Mon, 10 Jan 2022 10:33:19 +0100 Subject: [PATCH 1/5] #114 hide tomcat version on error pages --- templates/server.xml.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/server.xml.j2 b/templates/server.xml.j2 index c9df62d..646d296 100644 --- a/templates/server.xml.j2 +++ b/templates/server.xml.j2 @@ -136,7 +136,8 @@ - + + From 68d5eba32c0757c59211c4b58bc341eb42d1edee Mon Sep 17 00:00:00 2001 From: Antonio Arenzana Date: Mon, 10 Jan 2022 10:34:54 +0100 Subject: [PATCH 2/5] Update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 071a4fe..01d3f75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). ## [Unreleased](https://github.com/idealista/tomcat_role/tree/develop) - +### Added +- *[#114](https://github.com/idealista/tomcat_role/issues/114) Hide Tomcat version on error pages* @aren-pulid0 ## [1.10.2](https://github.com/idealista/tomcat_role/tree/1.10.2) [Full Changelog](https://github.com/idealista/tomcat_role/compare/1.10.1...1.10.2) From b9b9df19b7ab6981168dfadaf08996141fc16d08 Mon Sep 17 00:00:00 2001 From: Antonio Arenzana Date: Mon, 10 Jan 2022 17:04:57 +0100 Subject: [PATCH 3/5] #114 added flag --- templates/server.xml.j2 | 5 ++++- vars/main.yml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/server.xml.j2 b/templates/server.xml.j2 index 646d296..ab04a0e 100644 --- a/templates/server.xml.j2 +++ b/templates/server.xml.j2 @@ -137,7 +137,10 @@ prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> - + {% if tomcat_show_server_info_on_error_page == false %} + + {% endif %} + diff --git a/vars/main.yml b/vars/main.yml index f2d70c9..0afdbd6 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -8,4 +8,6 @@ tomcat_supported_agents_extensions: - '.tar' - '.tar.gz' - '.tar.bz2' - - '.tar.xz' \ No newline at end of file + - '.tar.xz' + +tomcat_show_server_info_on_error_page: false \ No newline at end of file From baf74889ef37d53a21b9c06e1d9439be15eae5f8 Mon Sep 17 00:00:00 2001 From: Antonio Arenzana Date: Wed, 12 Jan 2022 15:02:33 +0100 Subject: [PATCH 4/5] #114 improve readability --- templates/server.xml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/server.xml.j2 b/templates/server.xml.j2 index ab04a0e..877de35 100644 --- a/templates/server.xml.j2 +++ b/templates/server.xml.j2 @@ -137,7 +137,7 @@ prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> - {% if tomcat_show_server_info_on_error_page == false %} + {% if not tomcat_show_server_info_on_error_page %} {% endif %} From 9a9e93fb82195e47d655f1454b944a95ba016635 Mon Sep 17 00:00:00 2001 From: Antonio Arenzana Date: Wed, 12 Jan 2022 15:31:44 +0100 Subject: [PATCH 5/5] Prepare release 1.10.3 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01d3f75..94ea890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). ## [Unreleased](https://github.com/idealista/tomcat_role/tree/develop) + +## [1.10.3](https://github.com/idealista/tomcat_role/tree/1.10.3) +[Full Changelog](https://github.com/idealista/tomcat_role/compare/1.10.2...1.10.3) ### Added - *[#114](https://github.com/idealista/tomcat_role/issues/114) Hide Tomcat version on error pages* @aren-pulid0