{"id":19529808,"url":"https://github.com/yayuniversal/wireguard-ansible-role","last_synced_at":"2026-04-19T02:02:13.947Z","repository":{"id":173820011,"uuid":"651319032","full_name":"yayuniversal/wireguard-ansible-role","owner":"yayuniversal","description":"Ansible role to install WireGuard and configure an interface","archived":false,"fork":false,"pushed_at":"2025-09-27T20:05:53.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T04:03:55.982Z","etag":null,"topics":["ansible","ansible-role","wireguard","wireguard-tunnel"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yayuniversal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-09T01:50:47.000Z","updated_at":"2025-09-27T20:05:57.000Z","dependencies_parsed_at":"2023-11-14T16:47:50.558Z","dependency_job_id":"4be21b04-48d2-43ca-8418-5dec77941c70","html_url":"https://github.com/yayuniversal/wireguard-ansible-role","commit_stats":null,"previous_names":["lilianmallardeau/wireguard-ansible-role","yayuniversal/wireguard-ansible-role"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yayuniversal/wireguard-ansible-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fwireguard-ansible-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fwireguard-ansible-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fwireguard-ansible-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fwireguard-ansible-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yayuniversal","download_url":"https://codeload.github.com/yayuniversal/wireguard-ansible-role/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fwireguard-ansible-role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017953,"owners_count":26086188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","wireguard","wireguard-tunnel"],"created_at":"2024-11-11T01:27:43.892Z","updated_at":"2025-10-14T04:04:26.570Z","avatar_url":"https://github.com/yayuniversal.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"WireGuard Ansible Role\n=========================\n\nAn Ansible role to install WireGuard and configure an interface. Works on Debian-based distributions.\n\nRequirements\n------------\n\nNone\n\nRole Variables\n--------------\n\n```yaml\n# Private key. If empty (default), a new private key will be generated and saved on the server.\n# It will be reused next time for the same interface if the file exists.\nwireguard_private_key: \u003cprivate_key\u003e\n\n# Interface name\nwireguard_interface_name: wg0\n\n# IP address\nwireguard_ip_address: 10.0.0.1/24\n\n# Listen port\nwireguard_listen_port: 51820\n\n# DNS (omitted by default)\nwireguard_dns:\n\n# MTU (omitted by default)\nwireguard_mtu:\n\n# PreUp, PostUp, PreDown and PostDown scripts (omitted by default)\nwireguard_preup:\nwireguard_postup:\nwireguard_predown:\nwireguard_postdown:\n\n# Peers, empty by default\nwireguard_peers:\n  - public_key: \u003cpeer public key\u003e\n    allowed_ips: \u003cpeer allowed ip addresses\u003e\n    endpoint: \u003cip_addr:port\u003e  # Optional, domain names can also used\n    keepalive: \u003ckeepalive\u003e  # Optional, used to keep NAT port mappings alive\n    psk: \u003cpreshared_key\u003e  # Optional\n```\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: servers\n  roles:\n    - role: wireguard\n      vars:\n        wireguard_interface_name: wg0\n        wireguard_ip_address: 10.0.0.1/24\n        wireguard_listen_port: 51820\n        wireguard_peers:\n          - public_key: fK9L5i9Y/atI2qs7JGjMK2Ab6nccl/rrx+sUA11Zrgo=\n            allowed_ips: 10.0.0.2/32\n            endpoint: example.com:51820\n          - public_key: VT9WaisSQbwELinfBcIlGbFWtahePZyT92TgsIXX52M=\n            allowed_ips: 10.0.0.3/32\n```\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fwireguard-ansible-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyayuniversal%2Fwireguard-ansible-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fwireguard-ansible-role/lists"}