diff options
author | Matt Woodson <mwoodson@redhat.com> | 2015-02-24 10:14:28 -0500 |
---|---|---|
committer | Matt Woodson <mwoodson@redhat.com> | 2015-02-24 10:14:28 -0500 |
commit | f780d4fa01a1e8b1559d31a7065715317a884ec4 (patch) | |
tree | 918112c89578e387494f91d82f797d28f8347785 /roles/os_ipv6_disable | |
parent | eaeeb1ec8370c35c7010b9350d42e30e5e00dcc5 (diff) | |
download | openshift-f780d4fa01a1e8b1559d31a7065715317a884ec4.tar.gz openshift-f780d4fa01a1e8b1559d31a7065715317a884ec4.tar.bz2 openshift-f780d4fa01a1e8b1559d31a7065715317a884ec4.tar.xz openshift-f780d4fa01a1e8b1559d31a7065715317a884ec4.zip |
renamed ipv6_disable
Diffstat (limited to 'roles/os_ipv6_disable')
-rw-r--r-- | roles/os_ipv6_disable/tasks/main.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/os_ipv6_disable/tasks/main.yaml b/roles/os_ipv6_disable/tasks/main.yaml new file mode 100644 index 000000000..fae5beee7 --- /dev/null +++ b/roles/os_ipv6_disable/tasks/main.yaml @@ -0,0 +1,11 @@ +--- +# Disable ipv6 on RHEL7 + +- name: Disable all ipv6 + sysctl: name="net.ipv6.conf.all.disable_ipv6" value=1 sysctl_set=yes state=present reload=yes + +- name: Disable default ipv6 + sysctl: name="net.ipv6.conf.default.disable_ipv6" value=1 sysctl_set=yes state=present reload=yes + +- name: Remove ipv6 localhost from /etc/hosts + lineinfile: dest='/etc/hosts' regexp='^::1 ' state=absent owner=root group=root mode=0644 |