forked from CCCHH/ansible-infra
add jool_nat64 role
This commit is contained in:
parent
ca671bf3c2
commit
30420cf858
1 changed files with 60 additions and 0 deletions
27
roles/jool_nat64/tasks/main.yaml
Normal file
27
roles/jool_nat64/tasks/main.yaml
Normal 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
|
||||
Loading…
Reference in a new issue