diff options
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: |