Skip to content

Commit

Permalink
make URL replace idempotent for redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien4218 committed Jun 7, 2022
1 parent 2f68863 commit 0efcc34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/linux/roles/upload/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
- name: Replace any NR region specific URL - EU
ansible.builtin.replace:
path: ~/{{ service_id }}/startScenario.json
regexp: 'log-api.newrelic.com'
replace: 'log-api.eu.newrelic.com'
regexp: '/log-api.newrelic.com/'
replace: '/log-api.eu.newrelic.com/'
when: newrelic_region is defined and (newrelic_region|upper) == "EU"
- name: Replace any NR region specific URL - Staging
ansible.builtin.replace:
path: ~/{{ service_id }}/startScenario.json
regexp: 'log-api.newrelic.com'
replace: 'staging-log-api.newrelic.com'
regexp: '/log-api.newrelic.com/'
replace: '/staging-log-api.newrelic.com/'
when: newrelic_region is defined and (newrelic_region|upper) == "STAGING"

- include_tasks: create_artifact_params.yml

0 comments on commit 0efcc34

Please sign in to comment.