[INFO] Créer le rôle
This commit is contained in:
parent
ddb7a1a06a
commit
ccd3b8c67f
@ -1,3 +1,3 @@
|
||||
# role_modele
|
||||
# role_stubby
|
||||
|
||||
Modèle
|
||||
Rôle de déploiement de stubby.
|
||||
|
20
defaults/main.yml
Normal file
20
defaults/main.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
# defaults file for dnsmasq
|
||||
|
||||
stubby_listen_addresses:
|
||||
- 127.0.0.1
|
||||
- 0::1
|
||||
|
||||
stubby_upstream_recursive_servers:
|
||||
- address_data: 2a0f:fc80::0
|
||||
tls_port: 853
|
||||
tls_auth_name: "dns0.eu"
|
||||
- address_data: 2a0f:fc81::0
|
||||
tls_port: 853
|
||||
tls_auth_name: "dns0.eu"
|
||||
- address_data: 193.110.81.0
|
||||
tls_port: 853
|
||||
tls_auth_name: "dns0.eu"
|
||||
- address_data: 185.253.5.0
|
||||
tls_port: 853
|
||||
tls_auth_name: "dns0.eu"
|
8
handlers/main.yml
Normal file
8
handlers/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
# handlers file for stubby
|
||||
|
||||
- name: Redémarrer stubby.service
|
||||
ansible.builtin.systemd:
|
||||
state: restarted
|
||||
name: stubby.service
|
||||
become: true
|
@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
namespace: ykn
|
||||
author: pulsar89.5
|
||||
description: Rôle modèle
|
||||
description: Rôle de déploiement de stubby
|
||||
|
||||
license: GPL-3.0-or-later
|
||||
|
||||
|
14
tasks/main.yml
Normal file
14
tasks/main.yml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
# tasks file for stubby
|
||||
|
||||
- name: Installer stubby
|
||||
ansible.builtin.apt:
|
||||
name: stubby
|
||||
become: true
|
||||
|
||||
- name: configurer stubby
|
||||
ansible.builtin.template:
|
||||
src: stubby.yml.j2
|
||||
dest: /etc/stubby/stubby.yml
|
||||
become: true
|
||||
notify: Redémarrer stubby.service
|
52
templates/stubby.yml.j2
Normal file
52
templates/stubby.yml.j2
Normal file
@ -0,0 +1,52 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
resolution_type: GETDNS_RESOLUTION_STUB
|
||||
dns_transport_list:
|
||||
- GETDNS_TRANSPORT_TLS
|
||||
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
|
||||
tls_query_padding_blocksize: 128
|
||||
edns_client_subnet_private: 1
|
||||
round_robin_upstreams: 1
|
||||
idle_timeout: 10000
|
||||
listen_addresses:
|
||||
- {{ roles.stubby.ipv4 | default("127.0.0.1") }}@{{ roles.stubby.port | default(53000) }}
|
||||
- {{ roles.stubby.ipv6 | default("0::1") }}@{{ roles.stubby.port | default(53000) }}
|
||||
upstream_recursive_servers:
|
||||
- address_data: 145.100.185.15
|
||||
tls_auth_name: "dnsovertls.sinodun.com"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: 62lKu9HsDVbyiPenApnc4sfmSYTHOVfFgL3pyB+cBL4=
|
||||
- address_data: 145.100.185.16
|
||||
tls_auth_name: "dnsovertls1.sinodun.com"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: cE2ecALeE5B+urJhDrJlVFmf38cJLAvqekONvjvpqUA=
|
||||
- address_data: 185.49.141.37
|
||||
tls_auth_name: "getdnsapi.net"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: foxZRnIh9gZpWnl+zEiKa0EJ2rdCGroMWm02gaxSc9Q=
|
||||
- address_data: 2001:610:1:40ba:145:100:185:15
|
||||
tls_auth_name: "dnsovertls.sinodun.com"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: 62lKu9HsDVbyiPenApnc4sfmSYTHOVfFgL3pyB+cBL4=
|
||||
- address_data: 2001:610:1:40ba:145:100:185:16
|
||||
tls_auth_name: "dnsovertls1.sinodun.com"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: cE2ecALeE5B+urJhDrJlVFmf38cJLAvqekONvjvpqUA=
|
||||
- address_data: 2a04:b900:0:100::38
|
||||
tls_auth_name: "getdnsapi.net"
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: foxZRnIh9gZpWnl+zEiKa0EJ2rdCGroMWm02gaxSc9Q=
|
||||
- address_data: 80.67.188.188
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: WaG0kHUS5N/ny0labz85HZg+v+f0b/UQ73IZjFep0nM=
|
||||
- address_data: 2001:913::8
|
||||
tls_pubkey_pinset:
|
||||
- digest: "sha256"
|
||||
value: WaG0kHUS5N/ny0labz85HZg+v+f0b/UQ73IZjFep0nM=
|
Loading…
Reference in New Issue
Block a user