Skip to content

Commit

Permalink
chore: Install ca certs in java sysd deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rthorn-nr committed Dec 27, 2023
1 parent 618cca9 commit ab85125
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
- debug:
msg: Install Systemd Jetty

- name: Install Java for debian
- name: Install CA certificates
package:
name: ["ca-certificates-java"]
state: latest
become: true

- name: Install Java for debian
package:
name: ["default-jdk"]
update_cache: yes
Expand All @@ -19,7 +25,7 @@
when: ansible_pkg_mgr == 'yum'

- name: Download Jetty package
shell: wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.17.v20190418/jetty-distribution-9.4.17.v20190418.tar.gz
shell: wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.17.v20190418/jetty-distribution-9.4.17.v20190418.tar.gz
become: true

- name: Unpack Jetty
Expand All @@ -39,10 +45,10 @@
become: true

- name: Create and change ownership of jetty pid
shell: |
shell: |
mkdir /var/run/jetty
chown -R jetty:jetty /var/run/jetty
become: true
become: true

- name: Create symbolic link for Jetty
shell: ln -s /opt/jetty/bin/jetty.sh /etc/init.d/jetty
Expand All @@ -55,11 +61,11 @@
package:
name: ["sysv-rc-conf"]
update_cache: yes
state: latest
state: latest

- name: Enable jetty to start on boot
shell: sysv-rc-conf --level S jetty on

when: ansible_pkg_mgr == 'apt'
become: true

Expand Down Expand Up @@ -91,7 +97,7 @@
JETTY_PORT=8080
JETTY_HOST=192.168.1.10' >> /etc/default/jetty
become: true

- name: Start Jetty
shell: service jetty start
become: true

0 comments on commit ab85125

Please sign in to comment.