From 578af3519643aa191865e74f294c5f76b1cdddf1 Mon Sep 17 00:00:00 2001 From: flynn Date: Wed, 13 Feb 2019 20:26:06 +0100 Subject: [PATCH] run from a build release instead of building yourself --- defaults/main.yml | 1 + tasks/main.yml | 12 ++++++------ templates/start.sh | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 2e76dd0..a47fee2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,7 @@ --- # defaults file for . cat_user: cat +version: 1.0.1 mariadb_root_password: "some_super_secure_password" diff --git a/tasks/main.yml b/tasks/main.yml index fb81025..bbf4588 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -57,12 +57,12 @@ dest: "{{ cat_git_destination }}" -- name: Compile to jar - become: yes - become_user: "{{ cat_user }}" - shell: lein uberjar - args: - chdir: "{{ cat_git_destination }}" +#- name: Compile to jar +# become: yes +# become_user: "{{ cat_user }}" +# shell: lein uberjar +# args: +# chdir: "{{ cat_git_destination }}" ######################## diff --git a/templates/start.sh b/templates/start.sh index b0c07dc..b3ccb23 100644 --- a/templates/start.sh +++ b/templates/start.sh @@ -9,4 +9,4 @@ ACCESS-TOKEN-URI="{{ access-token-uri }}" OAUTH-CONSUMER-KEY="{{ OAUTH-CONSUMER-KEY }}" OAUTH-CONSUMER-SECRET="{{ OAUTH-CONSUMER-SECRET }}" -java -jar {{ cat_git_destination }}/target/uberjar/cat.jar +java -jar {{ cat_git_destination }}/releases/cat-{{version}}-SNAPSHOT.jar