From 4596743a5637ba548e5308a14bed31b450c339f7 Mon Sep 17 00:00:00 2001 From: Tobias Hachmer Date: Mon, 2 Oct 2017 11:11:43 +0200 Subject: [PATCH] Add readme for role prerequisites --- roles/prerequisites/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/prerequisites/README.md diff --git a/roles/prerequisites/README.md b/roles/prerequisites/README.md new file mode 100644 index 0000000..f1120c9 --- /dev/null +++ b/roles/prerequisites/README.md @@ -0,0 +1,19 @@ +# Ansible role prerequisites + +Diese Ansible role prüft ob die Voraussetzungen für ein Freifunk Gateway erfüllt sind. + +- Forward-DNS Eintrag == ausgelesener IPv4-Adresse +- Forward-DNS Eintrag == ausgelesener IPv6-Adresse +- Linux Distribution == Debian +- Debian Version == 9 + +## Benötigte Variablen + +- Variable `dns_host_ipv4_address` (Rollen-Variable) +``` +dns_host_ipv4_address: "{{ lookup('dig', inventory_hostname, 'qtype=A') }}" +``` +- Variable `dns_host_ipv6_address` (Rollen-Variable) +``` +dns_host_ipv6_address: "{{ lookup('dig', inventory_hostname, 'qtype=AAAA') }}" +```