Commit a61e7b8e by ansible

no message

1 parent 13e3d75b
Showing with 8 additions and 8 deletions
......@@ -74,6 +74,7 @@
dmaserverName: 'server_name bpdma.beebuddy.net;'
wdchatserverName: 'server_name bpchat.beebuddy.net;'
hostName: wdchat
etcHost: wdchatgateway localhost wdchatengine wdchat
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
......@@ -104,11 +105,10 @@
- name: Configure /etc/hosts
lineinfile:
dest: /etc/hosts
state: present
backrefs: yes
regexp: "{{ item.reg }}"
line: "{{ item.line }}"
dest: /etc/hosts
state: present
backrefs: yes
regexp: "{{ item.reg }}"
line: "{{ item.line }}"
with_items:
- { reg: '^(127.0.0.1).*', line: \1 wdchatgateway localhost wdchatengine {{ hostName }} }
tags: reg
\ No newline at end of file
- { reg: '^(127.0.0.1).*', line: \1 {{ etcHost }} }
\ 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!