dnsservice/ansible/tasks/blocky.yml

37 lines
923 B
YAML

# vi: ft=yaml.ansible
- name: create blocky group
group:
name: blocky
state: present
- name: create blocky user
user:
name: blocky
group: blocky
- name: ensure /opt/blocky exists
file:
path: /opt/blocky
state: directory
mode: '0755'
owner: blocky
group: blocky
- name: ensure /etc/blocky exists
file:
path: /etc/blocky
state: directory
mode: '0755'
owner: blocky
group: blocky
- name: install dnsproxy
unarchive:
src: https://github.com/0xERR0R/blocky/releases/download/v0.24/blocky_v0.24_Linux_x86_64.tar.gz
dest: /opt/blocky
include:
- blocky
remote_src: yes
#- name: setup service
# copy:
# src: "{{ playbook_dir }}/files/Caddyfile"
# dest: /etc/systemd/system/blocky.service
#- name: ensure dnsproxy is running
# service: name=dnscrypt-proxy state=started enabled=yes daemon-reload=true