Add IPv6 disable
This commit is contained in:
parent
7d4171d615
commit
93c5e46944
@ -10,6 +10,19 @@
|
||||
- rear
|
||||
state: present
|
||||
|
||||
- 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
|
||||
when:
|
||||
- rear_ipv6_disable_on_boot | default(false) | bool
|
||||
|
||||
- name: Check and define NFS server for backup
|
||||
ansible.builtin.include_role:
|
||||
name: rhc.rear.nfs_server_define
|
||||
|
Loading…
x
Reference in New Issue
Block a user