summaryrefslogtreecommitdiffstats
path: root/tests/vagrant/vagrant-template-centos6/roles/fix-localhost/tasks/main.yml
blob: 84dd252b65b4f1ad6347c1cd52467a60828d0470 (plain)
1
2
3
4
5
6
---
- name: remove IPv6 address for localhost
  shell: sed -i '/::1/s/localhost //' /etc/hosts

- name: add IPv4 address for localhost
  shell: sed -i '/127.0.0.1/s/$/ localhost/' /etc/hosts