forked from silpion/ansible-tomcat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request silpion#33 in ISAR/ansible-tomcat from feature/ISA…
…R-273 to next * commit 'b976ac3aa3b22269fbe4b97787de8e9577c2cc6a': With systemd on tomcat >= 8.5 we add custom protocol handlers based on the default when running tomcat with catalina.sh Fix typo in tasks documentation Non-systemd services call catalina.sh Fixup minimum required library files access controls for tomcat >= 8.5 to function Tomcat 8.5.N installs CATALINA_HOME/conf with umask 077 Add tomcat version 8.5.6
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- name: Register libraries in Tomcat installation | ||
tags: tomcat | ||
become: true | ||
register: tomcat_registered_files | ||
always_run: true | ||
changed_when: false | ||
when: tomcat_fact_is_not_initial_check_mode | ||
shell: ls -1 {{ acl_dir }}/*.jar | ||
|
||
- name: Update installation folder access controls | ||
tags: tomcat | ||
become: true | ||
file: | ||
state: directory | ||
dest: '{{ acl_dir }}' | ||
mode: 'o=rx' | ||
|
||
- name: Update installation libraries access controls | ||
tags: tomcat | ||
become: true | ||
with_items: '{{ (tomcat_registered_files|default({})).stdout_lines|default([]) }}' | ||
file: | ||
state: file | ||
mode: 'o=r' | ||
dest: '{{ item }}' | ||
|
||
- name: Update installation executables access controls | ||
tags: tomcat | ||
become: true | ||
when: '{{ ansible_local.util.init.system != "systemd" }}' | ||
with_items: | ||
- catalina.sh | ||
- setclasspath.sh | ||
file: | ||
state: file | ||
mode: 'o=rx' | ||
dest: '{{ tomcat_env_catalina_home }}/bin/{{ item }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
# SHA256 sum for the Tomcat redistributable package | ||
tomcat_redis_checksum: "sha256:8564cd9570adfd23394fd62a4cf999a294429e5f29017e4bb292c604eae9677b" | ||
tomcat_web_xml_schema_version: 3.1 |