Role Detail

bendews.cloudflared

Install cloudflared and systemd service for DNS-Over-HTTPS
Downloads
20
Type Ansible
Minimum Ansible Version 2.4
Installation $ ansible-galaxy install bendews.cloudflared
Tags
cloudflare
cloudflared
dns
DoH
https
init
systemd
Last Commit
Last Imported
Version History
Version Release Date
v1.0
OS Platforms
Platform Version
Debian buster
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
Ubuntu artful
Ubuntu bionic
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
SUCCESS

Build Status

cloudflared

This role simplifies the process of installing and enabling the cloudflared package. Commonly used as a DNS-Over-HTTPS proxy for the Cloudflare 1.1.1.1 service.

Requirements

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

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml for more variables that can be modified)

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"

Example Playbook

- hosts: servers
  tasks:
    - name: Install and Configure cloudflared
      include_role:
        name: bendews.cloudflared
      vars:
      cloudflared_allow_firewall: false
      cloudflared_enable_service: false
      cloudflared_port: 5053

TODO:

  • None

License

MIT

Author Information

Created in 2018 by Ben Dews

None