joenyland.wireguard

joenyland.wireguard

CI

安装 WireGuard

要求

没有。

角色变量

wireguard_interfaces

定义要配置的 WireGuard 接口。

示例

wireguard_interfaces:
  wg0:
    address: 
    mtu: 
    post_up:
      - wg set %i private-key /etc/wireguard/private.key # 推荐。这把密钥在安装角色时生成。
    dns: # 可选
      - 1.1.1.1 # DNS 服务器 1
      - 2.2.2.2 # DNS 服务器 2
      - vpn # 搜索域
    peers:
      - name: # 可选
        public_key: 
        allowed_ips: 
        endpoint:  # 可选
        keep_alive: # 可选
    enabled: true # 这个接口在启动时是否启动?
    state: started # 接口应该处于什么状态?

依赖

没有。

示例剧本

- hosts: server
  roles:
    - joenyland.wireguard

许可证

MIT

作者信息

⌨️ 由 Joe Nyland ❤️ 制作

关于项目

Installs WireGuard

安装
ansible-galaxy install joenyland.wireguard
许可证
Unknown
下载
297
拥有者