From e45695622f867734cbfd64797cf6b830a2fff604 Mon Sep 17 00:00:00 2001 From: Matt Woodson Date: Fri, 13 Feb 2015 14:55:01 -0500 Subject: more ansible tower commits --- roles/ipv6_disable/tasks/main.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/ipv6_disable/tasks/main.yaml (limited to 'roles/ipv6_disable') diff --git a/roles/ipv6_disable/tasks/main.yaml b/roles/ipv6_disable/tasks/main.yaml new file mode 100644 index 000000000..fae5beee7 --- /dev/null +++ b/roles/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 -- cgit v1.2.3