ansible-infra/roles/jool_nat64/tasks/main.yaml
2026-12-06 02:27:35 +01:00

27 lines
701 B
YAML

- 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