diff options
Diffstat (limited to 'roles/install_tayga')
-rw-r--r-- | roles/install_tayga/tasks/main.yml | 5 | ||||
-rw-r--r-- | roles/install_tayga/templates/systemd_override.conf.j2 | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/roles/install_tayga/tasks/main.yml b/roles/install_tayga/tasks/main.yml index 0f38790..7d4c6a5 100644 --- a/roles/install_tayga/tasks/main.yml +++ b/roles/install_tayga/tasks/main.yml @@ -11,6 +11,11 @@ mode: 0644 notify: restart tayga +- name: create systemd override folder + ansible.builtin.file: + path: /etc/systemd/system/tayga.service.d + state: directory + - name: systemd override.conf template: src: systemd_override.conf.j2 diff --git a/roles/install_tayga/templates/systemd_override.conf.j2 b/roles/install_tayga/templates/systemd_override.conf.j2 index a3e7229..fb6ec48 100644 --- a/roles/install_tayga/templates/systemd_override.conf.j2 +++ b/roles/install_tayga/templates/systemd_override.conf.j2 @@ -4,7 +4,7 @@ ExecStartPre=/usr/bin/tayga --mktun --config /etc/tayga.conf ExecStartPre=/usr/bin/ip link set nat64 up ExecStartPre=/usr/bin/ip addr replace {{ tayga_ipv4 }}/32 dev nat64 ExecStartPre=/usr/bin/ip addr replace 2a03:2260:1016::64/128 dev nat64 -ExecStartPre=/usr/bin/ip route replace {{ tayga_pool }} dev nat64 table ffmyk -ExecStartPre=/usr/bin/ip -6 route replace 64:ff9b::/96 dev nat64 table ffmyk +ExecStartPre=/usr/bin/ip route replace {{ tayga_pool }} dev nat64 proto static table ffmyk +ExecStartPre=/usr/bin/ip -6 route replace 64:ff9b::/96 dev nat64 proto static table ffmyk ExecStart=/usr/bin/tayga --nodetach --config /etc/tayga.conf Restart=always |