use hostsctl instead of unbound blocking

This seems like a better solution.
This commit is contained in:
Pig Monkey 2017-03-19 17:21:02 -07:00
parent 17eece1ad0
commit bfd3ad7c9b
5 changed files with 20 additions and 0 deletions

3
.gitmodules vendored
View file

@ -13,3 +13,6 @@
[submodule "roles/cryptshot/files/cryptshot"]
path = roles/cryptshot/files/cryptshot
url = https://github.com/pigmonkey/cryptshot
[submodule "roles/hostsctl/files/hostsctl"]
path = roles/hostsctl/files/hostsctl
url = https://github.com/0xl3vi/hostsctl

View file

@ -182,3 +182,6 @@ journal:
udisks:
auto_mount: False
shared_mount: True
hostsctl:
url: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

View file

@ -65,6 +65,7 @@
- { role: wormhole, tags: ['wormhole'] }
- { role: bluetooth, tags: ['bluetooth'], when: "bluetooth is defined" }
- { role: wttr, tags: ['wttr'] }
- { role: hostsctl, tags: ['hostsctl'], when: "hostsctl is defined" }
vars_prompt:
- name: user_password
prompt: "Enter desired user password"

@ -0,0 +1 @@
Subproject commit 980830e3d44afde85e7a983d2915488b8fd2334c

View file

@ -0,0 +1,12 @@
---
- name: Install hostsctl script
copy: src=hostsctl/hostsctl.sh dest=/usr/local/bin/hostsctl mode=0755
- name: Set hostsctl URL
lineinfile: dest=/usr/local/bin/hostsctl
regexp=^URL
state=present
line='URL="{{ hostsctl.url }}"'
- name: Update hostsctl
command: hostsctl update