working v6

This commit is contained in:
Jens Heinrich 2019-03-20 17:00:42 +01:00
commit 77780ff216
11 changed files with 329 additions and 0 deletions

40
tasks/FreeBSD-ipv6.yml Normal file
View file

@ -0,0 +1,40 @@
---
#https://forums.freebsd.org/threads/is-there-a-working-dhcpv6-client-for-freebsd.60168/
- name: "install the v6 able dhclienzt"
package:
name: dual-dhclient
state: present
become: true
tags:
- installation
# http://www.daemonology.net/blog/2017-01-26-IPv6-on-FreeBSD-EC2.html
- name: "enable dual dhcclient for v6"
lineinfile:
path: "/etc/rc.conf"
regexp: "^{{ item.name }}"
line: "{{ item.name }}=\"{{ item.val }}\""
become: true
loop: "{{ sysctl_setting }}"
tags:
- configuration
vars:
sysctl_setting:
- name: "ifconfig_DEFAULT"
val: " inet6 DHCP"
- name: "ifconfig_DEFAULT"
val: "DHCP accept_rtadv"
- name: "ifconfig_DEFAULT"
val: "DHCP accept_rtadv"
- name: " ipv6_activate_all_interfaces"
val: "YES"
- name: "dhclient_program"
val: "/usr/local/sbin/dual-dhclient"
notify: restart dhclient
# do i ned to disable the old dhclient?