diff --git a/infra/deployment/roles/explorer/tasks/main.yml b/infra/deployment/roles/explorer/tasks/main.yml index 70c103e1..ee6a6a2a 100644 --- a/infra/deployment/roles/explorer/tasks/main.yml +++ b/infra/deployment/roles/explorer/tasks/main.yml @@ -54,20 +54,12 @@ - name: Set the sentry config become: yes - copy: - src: "files/sentry.properties" + template: + src: "templates/sentry.properties.j2" dest: /home/play/app/xsn-block-explorer-0.1.0-SNAPSHOT/conf/sentry.properties owner: play group: play -- name: Add the servername to the sentry config - become: yes - lineinfile: - path: /home/play/app/xsn-block-explorer-0.1.0-SNAPSHOT/conf/sentry.properties - line: "servername={{ explorer_service_name }}" - owner: play - group: play - - name: Set the application files permissions become: yes file: diff --git a/infra/deployment/roles/explorer/files/sentry.properties b/infra/deployment/roles/explorer/templates/sentry.properties.j2 similarity index 53% rename from infra/deployment/roles/explorer/files/sentry.properties rename to infra/deployment/roles/explorer/templates/sentry.properties.j2 index e9dd7609..2f0f1715 100644 --- a/infra/deployment/roles/explorer/files/sentry.properties +++ b/infra/deployment/roles/explorer/templates/sentry.properties.j2 @@ -1 +1,2 @@ stacktrace.app.packages=com.xsn,com.alexitc +servername={{ explorer_service_name }}