Remove IPv6 stuff from here; moved to ReaR

This commit is contained in:
Chris Hammer 2025-04-09 12:10:27 -04:00
parent 74b7e1fcde
commit f75607f078
2 changed files with 1 additions and 22 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
roles
collections
*copy.yml
*copy*

View File

@ -8,30 +8,9 @@
ansible.builtin.debug:
var: ansible_hostname
- name: Toggle IPv6 off
ansible.builtin.shell:
cmd: "echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6"
changed_when: false
- name: Disable IPv6 for future reboots
ansible.builtin.lineinfile:
path: /etc/sysctl.conf
line: "net.ipv6.conf.all.disable_ipv6 = 1"
state: present
# notify: Sysctl_update
when:
- ipu_disable_ipv6 | default(false) | bool
- name: Define IP address for NFS export job
ansible.builtin.set_stats:
data:
ip_addresses: "{{ ansible_all_ipv4_addresses }}"
server_hostname: "{{ ansible_hostname }}"
aggregate: true
handlers:
- name: Sysctl_update
ansible.builtin.command:
cmd: sysctl -p
changed_when: false