Commit 25c6974b by ansible

no message

1 parent a61e7b8e
Showing with 9 additions and 9 deletions
......@@ -74,7 +74,7 @@
dmaserverName: 'server_name bpdma.beebuddy.net;'
wdchatserverName: 'server_name bpchat.beebuddy.net;'
hostName: wdchat
etcHost: wdchatgateway localhost wdchatengine wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
......@@ -105,10 +105,11 @@
- name: Configure /etc/hosts
lineinfile:
dest: /etc/hosts
state: present
backrefs: yes
regexp: "{{ item.reg }}"
line: "{{ item.line }}"
with_items:
- { reg: '^(127.0.0.1).*', line: \1 {{ etcHost }} }
\ No newline at end of file
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: {{ etcHost }}
owner: root
group: root
mode: 0644
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!