Di. 21 Mai 2019 19:07:14 CEST in /home/jens/Development/ansible/roles/tweaks on deathbolt.927589452.space
This commit is contained in:
parent
3b5dabc3aa
commit
e650f91311
19 changed files with 304 additions and 16 deletions
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
- include_vars: local_unbound.yml
|
||||
|
||||
- name: "save dhclients dns and dhcp in a file"
|
||||
lineinfile:
|
||||
path: "/etc/resolvconf.conf"
|
||||
|
|
@ -27,6 +29,22 @@
|
|||
- name: "local_unbound_enable"
|
||||
val: "YES"
|
||||
|
||||
- name: "get opennic hints"
|
||||
shell: "{{ hints_opennic_cmd }}"
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
||||
- name: "get named hints"
|
||||
get_url:
|
||||
url: "{{ hints_named_url }}"
|
||||
dest: "{{ hints_named }}"
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
||||
- name: manage resolv.conf
|
||||
template:
|
||||
dest: /etc/resolv.conf
|
||||
|
|
@ -35,20 +53,14 @@
|
|||
tags:
|
||||
- configuration
|
||||
|
||||
- name: "generate access control"
|
||||
- name: "generate configs"
|
||||
template:
|
||||
dest: "/etc/unbound/conf.d/access_control.conf"
|
||||
src: "templates/access_control.j2"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
notify: "restart local_unbound"
|
||||
|
||||
- name: "generate overlay for local dns"
|
||||
template:
|
||||
dest: "/etc/unbound/conf.d/local_resolver.conf"
|
||||
src: "templates/local_resolver.j2"
|
||||
src: "{{ config.src }}"
|
||||
dest: "{{ config.dest }}"
|
||||
become: true
|
||||
loop: "{{ local_unbound_files }}"
|
||||
loop_control:
|
||||
loop_var: config
|
||||
tags:
|
||||
- configuration
|
||||
notify: "restart local_unbound"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue