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