Commit 13e31034 authored by Andre Blanke's avatar Andre Blanke
Browse files

Move shortener install location to /opt/shortener

parent 332b11da
......@@ -2,4 +2,4 @@ backend
ExecStart=/usr/bin/java -jar /var/run/shortener/shortener.jar
ExecStart=/usr/bin/java -jar /opt/shortener/shortener.jar
......@@ -63,15 +63,16 @@
- name: Package shortener
chdir: /vagrant/shortener
cmd: mvn -DskipTests package
- name: Create /var/run/shortener/ directory
cmd: mvn -DskipTests clean package
- name: Create /opt/shortener/ directory
path: /var/run/shortener/
path: /opt/shortener/
state: directory
- name: Copy JAR file to /var/run/shortener/
- name: Copy JAR file to /opt/shortener/
src: /vagrant/shortener/target/shortener-1.0.0.jar
dest: /var/run/shortener/shortener.jar
dest: /opt/shortener/shortener.jar
force: yes
- name: Copy shortener.service unit file to /etc/systemd/system/
src: /vagrant/ansible/roles/worker/files/systemd/system/shortener.service
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment