Small ansible role to configure WireGuard on Client+Server (Arch/Ubuntu)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-role-wireguard/playbook-client.sample.yml

22 lines
498 B

---
# Sample client playbook
# Copy to playbook-client.yml
# Run with
# $ ansible-playbook playbook-client.yml --tags wg-client
- hosts: localhost
connection: local
gather_facts: false
vars_prompt:
- name: "ansible_become_pass"
prompt: "sudo password"
private: "yes"
vars:
- wg_server_public_key: "foo"
- wg_server_private_key: "bar"
- wg_client_public_key: "baz"
- wg_client_private_key: "oof"
- wg_client_server_pre_shared_key:
roles:
- wireguard