This commit is contained in:
2024-09-08 15:18:34 +03:00
parent f4ca41a3d4
commit d53262ac49

View File

@@ -1,22 +1,23 @@
---
- name: Set disable_ipv6 parameters in the sysctl configuration file
ansible.posix.sysctl:
name: "{{ item }}"
value: "1"
reload: false
loop:
- net.ipv6.conf.all.disable_ipv6
- net.ipv6.conf.default.disable_ipv6
- net.ipv6.conf.lo.disable_ipv6
- net.ipv4.ip_forward
notify: Reload the sysctl configuration
# - name: Set disable_ipv6 parameters in the sysctl configuration file
# ansible.posix.sysctl:
# name: "{{ item }}"
# value: "1"
# reload: false
# loop:
# - net.ipv6.conf.all.disable_ipv6
# - net.ipv6.conf.default.disable_ipv6
# - net.ipv6.conf.lo.disable_ipv6
# - net.ipv4.ip_forward
# notify: Reload the sysctl configuration
- name: Sysctl configuration file
ansible.builtin.lineinfile:
lineinfile:
path: /etc//etc/sysctl.d/99-sysctl.conf
state: present
line: net.ipv4.ip_forward=1
notify: Reload the sysctl configuration
- name: Enable NetworkManager
service:
name: NetworkManager