Enable ipv6 on homeserver.

This commit is contained in:
Tom Alexander
2024-07-12 21:44:43 -04:00
parent 0e2c7adaf9
commit 6be368a1e8
8 changed files with 24 additions and 12 deletions

View File

@@ -59,14 +59,15 @@
- name: Prefer ipv6
when: prefer_ipv6
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
sysctl_file: "/etc/rc.conf.d/ip6addrctl"
loop:
- name: ip6addrctl_policy
value: "ipv6_prefer"
blockinfile:
path: "/etc/rc.conf.d/ip6addrctl"
marker: "# {mark} ANSIBLE MANAGED BLOCK"
create: true
mode: 0600
owner: root
group: wheel
block: |
ip6addrctl_policy="ipv6_prefer"
- name: Don't Prefer ipv6
when: not prefer_ipv6