forked from finallycoffee/base
feat(wg_quick): add ansible role and playbook
This commit is contained in:
20
roles/wg_quick/defaults/main/connection.yml
Normal file
20
roles/wg_quick/defaults/main/connection.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
wg_quick_interface_name: ~
|
||||
wg_quick_interface_address: ~
|
||||
wg_quick_interface_listen_port: ~
|
||||
wg_quick_interface_private_key: ~
|
||||
wg_quick_interface_private_key_file: ~
|
||||
wg_quick_interface_peer_endpoint: ~
|
||||
wg_quick_interface_peer_public_key: ~
|
||||
wg_quick_interface_peer_allowed_ips: ~
|
||||
|
||||
wg_quick_interfaces:
|
||||
- name: "{{ wg_quck_interface_name }}"
|
||||
address: "{{ wg_quick_interface_address }}"
|
||||
listen_port: "{{ wg_quick_interface_listen_port }}"
|
||||
private_key: "{{ wg_quick_interface_private_key }}"
|
||||
private_key_file: "{{ wg_quick_interface_private_key_file }}"
|
||||
peers:
|
||||
- endpoint: "{{ wg_quick_interface_peer_endpoint }}"
|
||||
public_key: "{{ wg_quick_interface_peer_public_key }}"
|
||||
allowed_ips: "{{ wg_quick_interface_peer_allowed_ips }}"
|
||||
7
roles/wg_quick/defaults/main/main.yml
Normal file
7
roles/wg_quick/defaults/main/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
wg_quick_state: "present"
|
||||
wg_quick_package_name: "wireguard-tools"
|
||||
wg_quick_system_packages:
|
||||
- "{{ wg_quick_package_name }}"
|
||||
|
||||
wg_quick_configuration_dir: "/etc/wireguard"
|
||||
Reference in New Issue
Block a user