Commit 587c5465 authored by Alain Takoudjou's avatar Alain Takoudjou

vm-bootstrap: disable dhclient

parent 5ab15cdf
...@@ -61,6 +61,10 @@ ...@@ -61,6 +61,10 @@
- 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: Turn off dhclient if it's running
shell: pkill dhclient
ignore_errors: True
- name: ping current host - name: ping current host
script: ping host {{ lookup('file', '/etc/opt/ipv4') }} {{ lookup('file', '/etc/opt/hostname') }} script: ping host {{ lookup('file', '/etc/opt/ipv4') }} {{ lookup('file', '/etc/opt/hostname') }}
when: hostname_file.stat.exists == True when: hostname_file.stat.exists == 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