Skip to content

Install cloudflared and systemd service for DNS-Over-HTTPS

License

Notifications You must be signed in to change notification settings

ymarkus/ansible-cloudflared

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Install cloudflared and systemd service for DNS-Over-HTTPS

Resources

License

Stars

Watchers

Forks

Packages

No packages published