Include needed scripts
This commit is contained in:
parent
35a6017f7d
commit
8ead2bc0fe
4 changed files with 35 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
name:
|
||||
- wireguard-tools-wg
|
||||
state: present
|
||||
tags:
|
||||
- wireguard
|
||||
|
||||
- name: Enable IPv6 forwarding
|
||||
ansible.posix.sysctl:
|
||||
|
|
@ -15,14 +17,20 @@
|
|||
file:
|
||||
path: /etc/wireguard
|
||||
state: directory
|
||||
tags:
|
||||
- wireguard
|
||||
|
||||
- name: configure wg-adlin
|
||||
template:
|
||||
src: "wg.conf.j2"
|
||||
dest: "/etc/wireguard/wg-adlin.conf"
|
||||
tags:
|
||||
- wireguard
|
||||
|
||||
- name: enable wg-adlin
|
||||
template:
|
||||
src: networking.j2
|
||||
dest: "/etc/network/interfaces.d/wg-adlin"
|
||||
notify: restart networking
|
||||
tags:
|
||||
- wireguard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue