ipv4_only wip
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
# code: language=ansible
|
||||
|
||||
- name: Disable IPv6 Link Local Addressing
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/systemd/network/10-cloud-init-eth0.network
|
||||
line: "{{ item.line }}"
|
||||
regexp: "{{ item.regexp }}"
|
||||
insertafter: '^\[Network\]$'
|
||||
firstmatch: true
|
||||
state: present
|
||||
loop:
|
||||
- line: LinkLocalAddressing=no
|
||||
regexp: '^LinkLocalAddressing\s*=\s*.*$'
|
||||
- line: IPv6LinkLocalAddressGenerationMode=none
|
||||
regexp: '^IPv6LinkLocalAddressGenerationMode\s*=\s*.*$'
|
||||
loop_control:
|
||||
label: "{{ item.line }}"
|
||||
notify:
|
||||
- Reboot
|
||||
|
||||
- name: Disable ipv6 (all)
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user