eigenes playbook für wireguard und DS_Store ignorieren

This commit is contained in:
Stefan Märkle 2020-12-28 15:45:26 +01:00
parent f731cae452
commit 418f615f55
2 changed files with 19 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.terraform
wireguard_profiles/*
*~
inventory/*
inventory/*
.DS_Store

17
wireguard.yml Normal file
View File

@ -0,0 +1,17 @@
---
- name: Install wireguard server on launched hosts
hosts: launched
remote_user: admin
become: true
vars_prompt:
- name: vpn_clients_text
prompt: Please provide a space separated list of clients keys to generate (e.g. "mobilephone dekstop"
default: ""
private: no
vars:
vpn_client_names: "{{ vpn_clients_text.split(' ') }}"
vpn_clients: []
vpn_network: '10.100.100'
vpn_port: '58172'
roles:
- wireguard_server