From f780d4fa01a1e8b1559d31a7065715317a884ec4 Mon Sep 17 00:00:00 2001 From: Matt Woodson Date: Tue, 24 Feb 2015 10:14:28 -0500 Subject: renamed ipv6_disable --- roles/ipv6_disable/tasks/main.yaml | 11 ----------- roles/os_ipv6_disable/tasks/main.yaml | 11 +++++++++++ roles/timezone/tasks/main.yaml | 4 ---- 3 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 roles/ipv6_disable/tasks/main.yaml create mode 100644 roles/os_ipv6_disable/tasks/main.yaml delete mode 100644 roles/timezone/tasks/main.yaml diff --git a/roles/ipv6_disable/tasks/main.yaml b/roles/ipv6_disable/tasks/main.yaml deleted file mode 100644 index fae5beee7..000000000 --- a/roles/ipv6_disable/tasks/main.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# 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 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 diff --git a/roles/timezone/tasks/main.yaml b/roles/timezone/tasks/main.yaml deleted file mode 100644 index 339b4e0b2..000000000 --- a/roles/timezone/tasks/main.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- name: Setup correct timezone - command: timedatectl set-timezone America/New_York - when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int >= 7 -- cgit v1.2.3