Add IPv6 disable; tweaks
This commit is contained in:
parent
93c5e46944
commit
083f7ee3e5
@ -10,19 +10,11 @@
|
|||||||
- rear
|
- rear
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Toggle IPv6 off
|
- name: Toggle IPv6 off prior to ReaR backup
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: "echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6"
|
cmd: "echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6"
|
||||||
changed_when: false
|
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
|
- name: Check and define NFS server for backup
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: rhc.rear.nfs_server_define
|
name: rhc.rear.nfs_server_define
|
||||||
@ -69,6 +61,14 @@
|
|||||||
when:
|
when:
|
||||||
- rear_config_stat['stat']['exists'] | bool
|
- rear_config_stat['stat']['exists'] | bool
|
||||||
|
|
||||||
|
- name: Disable IPv6 for future reboots if requested
|
||||||
|
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: ReaR backup success
|
- name: ReaR backup success
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "ReaR backup has completed successfully."
|
msg: "ReaR backup has completed successfully."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user