add jool_nat64 role

This commit is contained in:
lilly 2026-12-06 02:25:09 +01:00
commit 30420cf858
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -0,0 +1,27 @@
- tags: [ jool_nat64, jool, nat64 ]
block:
- name: Install jool
become: true
ansible.builtin.apt:
name: [ linux-headers-amd64, jool-dkms, jool-tools ]
- name: Create jool configuration directory
become: true
ansible.builtin.file:
path: /etc/jool
state: directory
- name: Configure jool
become: true
notify: "restart jool"
ansible.builtin.copy:
content: "{{ jool_nat64__settings | to_json }}"
dest: "/etc/jool/jool.conf"
- name: Ensure jool is running and enabled
become: true
ansible.builtin.systemd_service:
name: "jool.service"
state: "started"
enabled: true