sebdanielsson.cloudflared

cloudflared(Cloudflare零访问隧道)

这个角色在Debian、RedHat和Archlinux家族系统上安装cloudflared(Cloudflare零访问隧道)。如果提供了凭证,它还可以创建一个服务,并建立与Cloudflare的连接。

这是我第一个Ansible角色,功能还不完整。如果你想添加更多cloudflared功能,欢迎给我提交一个PR!

需求

  • systemd初始化系统
  • Debian家族系统(几乎所有当前维护的版本)
  • 使用dnf包管理器的RedHat家族系统
  • 使用pacman的Archlinux家族系统
  • 由于使用了deb822_repository模块,要求ansible-core版本为2.15.1

角色变量

cloudflare_tunnel_enable - 是否为隧道创建服务。此选项要求设置cloudflare_tunnel_credentialcloudflare_tunnel_credential - 需要提供凭证以建立隧道。

依赖项

无。

示例剧本

- hosts: localhost

  roles:
    - role: sebdanielsson.cloudflared
      vars:
        cloudflare_tunnel_enable: true
        cloudflare_tunnel_credential: <你的_cf_tunnel_credential>
      state: present

许可

MIT

作者信息

创建者:Sebastian Danielsson 2023
GitHub 个人资料:https://github.com/sebdanielsson
网站:https://sebbo.io

关于项目

Install and configure cloudflared (Cloudflare Zero Access Tunnel) on Debian, RedHat and Archlinux family systems.

安装
ansible-galaxy install sebdanielsson.cloudflared
许可证
mit
下载
2.9k
拥有者