feat(fwknopd): add Ansible role for fwknopd management with necessary tasks and configurations

This commit is contained in:
2025-05-18 15:50:18 +02:00
parent 4e07e062ce
commit fef5c73726
13 changed files with 270 additions and 101 deletions
+25
View File
@@ -0,0 +1,25 @@
---
- name: Install fwknop
ansible.builtin.package:
name: fwknop-server
state: present
update_cache: true
- name: Enable and start fwknopd
ansible.builtin.systemd:
name: fwknopd
enabled: true
state: started
- name: Generate fwknop key pair
ansible.builtin.command: fwknop --key-gen
args:
creates: "{{ fwknopd_keys_dir }}/access.conf"
- name: Copy access.conf
ansible.builtin.template:
src: access.conf.j2
dest: "{{ fwknopd_keys_dir }}/access.conf"
owner: root
group: root
mode: '0600'