diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-12-05 19:07:35 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-12-05 19:21:39 +0100 |
commit | c624e52a8357da8db022831b86f2c85bb7bfed2f (patch) | |
tree | bfa87a875c3bd6b6cb31cec5614bdf6118d5421f /roles/space_server/tasks | |
parent | 6827f7826451a2b9e99800d2fdb4e1793e61b968 (diff) | |
download | labitat-ansible-c624e52a8357da8db022831b86f2c85bb7bfed2f.tar.gz labitat-ansible-c624e52a8357da8db022831b86f2c85bb7bfed2f.tar.xz labitat-ansible-c624e52a8357da8db022831b86f2c85bb7bfed2f.zip |
space_server: enable NAT64/DNS64 network
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r-- | roles/space_server/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/space_server/tasks/tayga.yml | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/roles/space_server/tasks/main.yml b/roles/space_server/tasks/main.yml index bc1b332..bfa3bc6 100644 --- a/roles/space_server/tasks/main.yml +++ b/roles/space_server/tasks/main.yml @@ -30,6 +30,8 @@ when: radius_passwords is defined - import_tasks: unbound.yml tags: unbound +- import_tasks: tayga.yml + tags: tayga - import_tasks: avahi.yml tags: avahi diff --git a/roles/space_server/tasks/tayga.yml b/roles/space_server/tasks/tayga.yml new file mode 100644 index 0000000..a06703e --- /dev/null +++ b/roles/space_server/tasks/tayga.yml @@ -0,0 +1,25 @@ +--- +- name: Create labitat.conf + copy: + dest: '/etc/tayga/labitat.conf' + src: tayga-labitat.conf + owner: root + group: root + mode: 0644 + notify: restart tayga + +- name: Create /etc/systemd/system/sys-devices-virtual-net-nat64.device.wants + file: + path: '/etc/systemd/system/sys-devices-virtual-net-nat64.device.wants' + state: directory + owner: root + group: root + mode: 0755 + +- name: Start tayga@labitat.service when nat64 interface is up + file: + path: '/etc/systemd/system/sys-devices-virtual-net-nat64.device.wants/tayga@labitat.service' + src: '/usr/lib/systemd/system/tayga@.service' + state: link + +# vim: set ts=2 sw=2 et: |