Commit 25c6974b by ansible

no message

1 parent a61e7b8e
Showing with 9 additions and 9 deletions
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
dmaserverName: 'server_name bpdma.beebuddy.net;' dmaserverName: 'server_name bpdma.beebuddy.net;'
wdchatserverName: 'server_name bpchat.beebuddy.net;' wdchatserverName: 'server_name bpchat.beebuddy.net;'
hostName: wdchat hostName: wdchat
etcHost: wdchatgateway localhost wdchatengine wdchat etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks: tasks:
- file: - file:
path: /opt/stack/dma/conf/dmaconfig.properties path: /opt/stack/dma/conf/dmaconfig.properties
...@@ -105,10 +105,11 @@ ...@@ -105,10 +105,11 @@
- name: Configure /etc/hosts - name: Configure /etc/hosts
lineinfile: lineinfile:
dest: /etc/hosts path: /etc/hosts
state: present regexp: '^127\.0\.0\.1'
backrefs: yes line: {{ etcHost }}
regexp: "{{ item.reg }}" owner: root
line: "{{ item.line }}" group: root
with_items: mode: 0644
- { 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!