Skip to content
Snippets Groups Projects
Commit 01db766b authored by Mark Deuerling's avatar Mark Deuerling
Browse files

empty main.yml

parent 8f50a104
No related branches found
No related tags found
No related merge requests found
---
- name: Install Java
hosts: app_server
become: yes
tasks:
- name: installing ...
yum: name=java-1.8.0-openjdk.x86_64 state=latest
- name: Install Maven
hosts: app_server
become: yes
tasks:
- name: installing ...
yum: name=maven state=latest
- name: Copy Snapshot
hosts: app_server
become: yes
tasks:
- name: copying ...
copy:
src: /var/lib/jenkins/workspace/petclinic/target/spring-petclinic-2.1.0.BUILD-SNAPSHOT.jar
dest: /home/jenkins/snapshot.jar
- name: Run petclinic
hosts: app_server
become: yes
become_user: root
tasks:
- name: running ...
systemd:
name: petclinic
state: started
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment