Add Wireguard playbook and first commit
This commit is contained in:
17
roles/homelab/wireguard/tasks/configure_system.yml
Normal file
17
roles/homelab/wireguard/tasks/configure_system.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
- name: "Enable ipv4 forward"
|
||||
ansible.posix.sysctl:
|
||||
name: net.ipv4.ip_forward
|
||||
value: 1
|
||||
state: present
|
||||
reload: yes
|
||||
|
||||
- name: "Upload nftable"
|
||||
ansible.builtin.template:
|
||||
src: nftables.conf.j2
|
||||
dest: /etc/nftables.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: "restart nftables"
|
||||
Reference in New Issue
Block a user