Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Create tomcat.yml for server configuration #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions tomcat-sample/tomcat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
- hosts: all
become: yes
tasks:
- name: adding default jre
apt:
name: default-jre
update_cache: yes
state: present
- name: adding default jdk
apt:
name: default-jdk
update_cache: yes
state: present

- name: adding properties
apt:
name: software-properties-common
update_cache: yes
- name: adding repository
apt_repository:
repo: 'ppa:webupd8team/java'
state: present
update_cache: yes
- name: Accept Java 8 License
become: yes
debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
- name: install java8
apt:
name: "{{item}}"
update_cache: yes
with_items:
- oracle-java8-installer
- ca-certificates
- oracle-java8-set-default
- name: install tomcat8
apt:
name: tomcat8
update_cache: yes
state: present
- name: service start
service:
name: tomcat8
state: restarted