diff options
Diffstat (limited to 'tests/vagrant/vagrant-template')
-rw-r--r-- | tests/vagrant/vagrant-template/roles/fix-localhost/tasks/main.yml | 6 | ||||
-rw-r--r-- | tests/vagrant/vagrant-template/setup.yml | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/vagrant/vagrant-template/roles/fix-localhost/tasks/main.yml b/tests/vagrant/vagrant-template/roles/fix-localhost/tasks/main.yml new file mode 100644 index 00000000000..84dd252b65b --- /dev/null +++ b/tests/vagrant/vagrant-template/roles/fix-localhost/tasks/main.yml @@ -0,0 +1,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 diff --git a/tests/vagrant/vagrant-template/setup.yml b/tests/vagrant/vagrant-template/setup.yml index 454c171300d..a9e798da3f4 100644 --- a/tests/vagrant/vagrant-template/setup.yml +++ b/tests/vagrant/vagrant-template/setup.yml @@ -12,5 +12,6 @@ - mock-user - selinux - iptables + - fix-localhost - daemon-services |