Add wiregaurd deployment with wg-easy
This commit is contained in:
16
tasks/wireguard.yml
Normal file
16
tasks/wireguard.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: wireguard | check vars are defined
|
||||
assert:
|
||||
that:
|
||||
- wireguard_domain is defined
|
||||
tags: ['docker_wireguard']
|
||||
|
||||
- include_tasks: base.yml
|
||||
tags: ['docker_wireguard']
|
||||
|
||||
- name: 'wireguard | create docker volumes'
|
||||
docker_volume:
|
||||
name: '{{ item }}'
|
||||
with_items:
|
||||
- 'wireguard__etc_wireguard'
|
||||
tags: ['docker_wireguard']
|
Reference in New Issue
Block a user