diff --git a/network.yml b/network.yml index 62c79678034eea05f56846842f4758700c910740..bdebc1781d622479726fb5b729aa58e198711fb5 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 0000000000000000000000000000000000000000..0c962a8b200dcef4abe6ac05f3c1f43930d12fb5 --- /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