File tree 1 file changed +19
-0
lines changed
ansible/roles/tomcat/tasks
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 142
142
tags :
143
143
- tomcat
144
144
145
+ - name : " Show tomcat and distro"
146
+ debug :
147
+ msg : " Using distro {{ansible_distribution_version}} and {{tomcat}}"
148
+ tags :
149
+ - tomcat
150
+
145
151
- name : configure tomcat (Debian)
146
152
blockinfile :
147
153
path={{tomcat_conf}}
155
161
- tomcat
156
162
- tomcat-security
157
163
164
+ - name : configure tomcat (Debian) in 18.04
165
+ blockinfile :
166
+ path={{tomcat_conf}}
167
+ marker="# {mark} Configure Tomcat Memory (Ansible managed)"
168
+ block='JAVA_OPTS="-Djava.awt.headless=true -XX:+UseG1GC {{tomcat_java_opts}} {{java_security_opts}}"'
169
+ backup=yes
170
+ notify :
171
+ - restart tomcat
172
+ when : ansible_os_family == "Debian" and ansible_distribution_version == "18.04" and tomcat == "tomcat9"
173
+ tags :
174
+ - tomcat
175
+ - tomcat-security
176
+
158
177
- name : Set JAVA_HOME (Debian)
159
178
lineinfile : "
160
179
dest={{tomcat_conf}}
You can’t perform that action at this time.
0 commit comments