bendews.cloudflared

构建状态

cloudflared

此角色简化了安装和启用 cloudflared 包的过程。通常用作 Cloudflare 的 DNS-Over-HTTPS 代理服务 1.1.1.1 服务

需求

  • Python >= 2.6
  • Ansible >= 2.4
  • systemd

角色变量

可用的变量如下所示,以及默认值(请查看 defaults/main.yml 获取更多可修改的变量)

cloudflared_allow_firewall: false
cloudflared_enable_service: true
cloudflared_upstream: "https://1.1.1.1/dns-query"
cloudflared_port: 5053
cloudflared_options: "proxy-dns --port {{ cloudflared_port }} --upstream {{ cloudflared_upstream }}"
cloudflared_bin_location: "/usr/local/bin"

示例剧本

- hosts: servers
  tasks:
    - name: 安装并配置 cloudflared
      include_role:
        name: bendews.cloudflared
      vars:
      cloudflared_allow_firewall: false
      cloudflared_enable_service: false
      cloudflared_port: 5053

待办事项:

许可证

MIT

作者信息

Ben Dews 于 2018 年创建

关于项目

Install cloudflared and systemd service for DNS-Over-HTTPS

安装
ansible-galaxy install bendews.cloudflared
许可证
mit
下载
259
拥有者
Engineer with a passion for network & infrastructure automation