Commit 18da296d by ansible

edit syntax to update wdchat publish url

1 parent 6a1014a9
Showing with 5 additions and 4 deletions
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
become: true become: true
vars: vars:
dmapublishURL: 'publishUrl = https://bpchat.beebuddy.net' dmapublishURL: 'publishUrl = https://bpchat.beebuddy.net'
wdchatpublishURL: https://bpchat.beebuddy.net
tasks: tasks:
- file: - file:
path: /opt/stack/dma/conf/dmaconfig.properties path: /opt/stack/dma/conf/dmaconfig.properties
...@@ -23,8 +24,8 @@ ...@@ -23,8 +24,8 @@
- name: Update DMA publish URL - name: Update DMA publish URL
copy: content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties copy: content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties
- name: Update New Domain - name: Update publish_url
expect: expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres ' command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -c "update wd_sys_config set sys_value = '{{ wdchatpublishURL }}' where sys_group ='system' and sys_key = 'publish_url'"
responses: responses:
'Password for user postgres': 'password' 'Password for user wdchat': 'BBRyAPNh6g4H9qte'
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!