deploy_customer_configuration.yml
989 Bytes
---
- hosts: dhipaya
become: true
vars:
dmapublishURL: 'publishUrl = https://tipeasy.dhipaya.co.th'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
state: touch
mode: 0644
- name: Update DMA publish URL
copy: content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties
- hosts: blueprint
become: true
vars:
dmapublishURL: 'publishUrl = https://bpchat.beebuddy.net'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
state: touch
mode: 0644
- name: Update DMA publish URL
copy: content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties
- name: Update New Domain
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres '
responses:
'Password for user postgres': 'password'