From dbeff436f0233f46ae7605cf2ad5a0226563e0be Mon Sep 17 00:00:00 2001 From: Benjamin Graillot <graillot@crans.org> Date: Mon, 1 Jul 2019 19:41:35 +0200 Subject: [PATCH] [bind-authoritative] Added bind-authoritative role --- network.yml | 7 ++++++- roles/bind-authoritative/tasks/main.yml | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 roles/bind-authoritative/tasks/main.yml diff --git a/network.yml b/network.yml index 62c79678..bdebc178 100644 --- a/network.yml +++ b/network.yml @@ -13,11 +13,16 @@ - wireguard - motd-role -# Deploy DNS server +# Deploy recursive DNS cache server - hosts: odlyd.adm.crans.org roles: - bind-recursive +# Deplay authoritative DNS server +- hosts: sputnik.adm.crans.org + roles: + - bind-authoritative + # Deploy firewall - hosts: gulp.adm.crans.org roles: [] # TODO diff --git a/roles/bind-authoritative/tasks/main.yml b/roles/bind-authoritative/tasks/main.yml new file mode 100644 index 00000000..0c962a8b --- /dev/null +++ b/roles/bind-authoritative/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Install Bind9 + apt: + update_cache: true + name: bind9 + register: apt_result + retries: 3 + until: apt_result is succeeded -- GitLab