From 418f615f556b043ce2be6b5526a05c44729792bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=A4rkle?= Date: Mon, 28 Dec 2020 15:45:26 +0100 Subject: [PATCH] =?UTF-8?q?eigenes=20playbook=20f=C3=BCr=20wireguard=20und?= =?UTF-8?q?=20DS=5FStore=20ignorieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- wireguard.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 wireguard.yml diff --git a/.gitignore b/.gitignore index 635053b..4742a5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .terraform wireguard_profiles/* *~ -inventory/* \ No newline at end of file +inventory/* +.DS_Store \ No newline at end of file diff --git a/wireguard.yml b/wireguard.yml new file mode 100644 index 0000000..271cd81 --- /dev/null +++ b/wireguard.yml @@ -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