Add some actually useful macOS playbooks

This commit is contained in:
2020-01-11 15:09:38 +00:00
parent d701574f45
commit f11eb4e0d3
9 changed files with 43 additions and 185 deletions

View File

@@ -0,0 +1,33 @@
---
- hosts: localhost
tasks:
- name: Install cloudflare homebrew tap
homebrew_tap:
name: cloudflare/cloudflare
state: present
register: cloudflare_tap
- name: Update homebrew package list
homebrew:
update_homebrew: true
when: cloudflare_tap.changed
- name: Install cloudflared
homebrew:
name: cloudflared
update_homebrew: true
state: present
- name: Create cloudflared config directory
file:
path: /usr/local/etc/cloudflared
state: directory
- name: Create cloudflared config file
copy:
dest: /usr/local/etc/cloudflared/config.yaml
content: |
proxy-dns: true
proxy-dns-upstream:
- https://dns.bah.io/dns-query
- debug:
msg: >-
To install and start cloudflared service run:
sudo cloudflared service install --
Then set the DNS server to 127.0.0.1 in System Preferences.