Tomcat. Jenkins and apache tuning.

This commit is contained in:
2017-06-11 23:11:49 +03:00
parent 2a760ade75
commit be383982ed
6 changed files with 22 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@
become: yes
roles:
- { role: apache2config }
- { role: tomcat8 }
vars:
tmpl:
- { file: "101-syncthing", value: 'Use ProxyHost "syncthing.rudolf" "/" "http://localhost:{{ syncthing_port }}/" "syncthing.rudolf"' }
+1 -2
View File
@@ -26,11 +26,10 @@
- { name: macro , state: present }
- { name: auth_openidc , state: present }
- { name: ssl , state: present }
- { name: cgi , state: present }
- { name: cgid , state: present }
# - { name: ssl , state: absent }
notify:
- restart apache2
ignore_errors: True
- name: apache running
service:
+1
View File
@@ -21,6 +21,7 @@
detach: True
net: default
restart_policy: always
memory_limit: 1024MB
volumes:
- "/var/jenkins:/var/jenkins_home"
# - "/var/run/docker.sock:/var/run/docker.sock"
+2
View File
@@ -0,0 +1,2 @@
- name: restart tomcat8
service: name=tomcat8 state=restarted
+8
View File
@@ -0,0 +1,8 @@
galaxy_info:
author: your name
description: your description
company: your company (optional)
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 1.2
galaxy_tags: []
dependencies: []
+9
View File
@@ -0,0 +1,9 @@
- name: install tomcat8
apt: name=tomcat8 update_cache=yes state=latest
- name: tomcat8 running
service:
name: tomcat8
state: started
enabled: yes