mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
use hostsctl instead of unbound blocking
This seems like a better solution.
This commit is contained in:
parent
17eece1ad0
commit
bfd3ad7c9b
5 changed files with 20 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -182,3 +182,6 @@ journal:
|
|||
udisks:
|
||||
auto_mount: False
|
||||
shared_mount: True
|
||||
|
||||
hostsctl:
|
||||
url: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
1
roles/hostsctl/files/hostsctl
Submodule
1
roles/hostsctl/files/hostsctl
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 980830e3d44afde85e7a983d2915488b8fd2334c
|
||||
12
roles/hostsctl/tasks/main.yml
Normal file
12
roles/hostsctl/tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue