From ab8512593704e360170f76e7c580cc2f3942bb86 Mon Sep 17 00:00:00 2001 From: Ryan Thorn Date: Wed, 27 Dec 2023 13:32:50 -0800 Subject: [PATCH] chore: Install ca certs in java sysd deploy --- .../install/roles/configure/tasks/main.yml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/test/deploy/linux/jetty/systemd/install/roles/configure/tasks/main.yml b/test/deploy/linux/jetty/systemd/install/roles/configure/tasks/main.yml index 532eddf3b..6ed38f471 100644 --- a/test/deploy/linux/jetty/systemd/install/roles/configure/tasks/main.yml +++ b/test/deploy/linux/jetty/systemd/install/roles/configure/tasks/main.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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