Commit dc7b257b authored by Alain Takoudjou's avatar Alain Takoudjou

playbook: fix downloaded path, cleanup /etc/resolv.conf file

parent f26d8ba1
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
when: hostname_file.stat.exists == True when: hostname_file.stat.exists == True
- name: setting cluster - name: setting cluster
shell: wget --no-check-certificate "{{ lookup('file', '/tmp/cluster.hash') }}/hosts" -O /tmp/hosts shell: wget --no-check-certificate "{{ lookup('file', '/etc/opt/cluster.hash') }}/hosts" -O /tmp/hosts
when: cluster_hash.stat.exists == True when: cluster_hash.stat.exists == True
- name: stat /tmp/hosts - name: stat /tmp/hosts
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
- name: Delete default nameserver - name: Delete default nameserver
lineinfile: dest=/etc/resolv.conf line="nameserver 10.0.2.3" state=absent lineinfile: dest=/etc/resolv.conf line="nameserver 10.0.2.3" state=absent
- name: Delete nameserver 8.8.8.8
lineinfile: dest=/etc/resolv.conf line="nameserver 8.8.8.8" state=absent
- name: Turn off dhclient if it's running - name: Turn off dhclient if it's running
shell: pkill dhclient shell: pkill dhclient
ignore_errors: True ignore_errors: True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment