Skip to content

Commit

Permalink
Added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
qtkhajacloud committed Aug 4, 2022
1 parent c043ade commit 36b8735
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Aug22/gameoflife/deploy.yaml
Expand Up @@ -3,8 +3,21 @@
become: yes
hosts: all
tasks:
- name: update ubuntu packages
- name: update ubuntu packages and install java 8
ansible.builtin.apt:
name: openjdk-8-jdk
update_cache: yes
state: present
state: present
- name: install tomcat9
ansible.builtin.apt:
name: tomcat9
state: present
- name: download the gameoflife war file
ansible.builtin.get_url:
dest: /var/lib/tomcat9/webapps/gameoflife.war
url: https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/gameoflife.war
- name: restart tomcat9 service
ansible.builtin.systemd:
enabled: yes
name: tomcat9
state: restarted

0 comments on commit 36b8735

Please sign in to comment.