diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-10-06 01:18:17 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-10-06 01:18:17 +0200 |
commit | a263e42107537a99e258998c8d5a999f13388fb1 (patch) | |
tree | 0560e6629dfaa1c9bfe1ecf343c132e03bbceb5c /roles/bind/tasks/download_zonefile.yml | |
parent | 84deda7bee5fec7472be556ce2b6028499f0103e (diff) | |
download | ansible_collection-a263e42107537a99e258998c8d5a999f13388fb1.tar.gz |
bind: add role
Diffstat (limited to 'roles/bind/tasks/download_zonefile.yml')
-rw-r--r-- | roles/bind/tasks/download_zonefile.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/bind/tasks/download_zonefile.yml b/roles/bind/tasks/download_zonefile.yml new file mode 100644 index 0000000..9e89507 --- /dev/null +++ b/roles/bind/tasks/download_zonefile.yml @@ -0,0 +1,15 @@ +--- +- name: Download zonefile + uri: + url: '{{ bind_zonefile_base_url }}/{{ item }}' + return_content: yes + delegate_to: localhost + register: zonefile + +- name: Install zonefile + copy: + dest: '/etc/bind/zonefiles/{{ item }}' + content: '{{ zonefile.content }}' + become: yes + notify: Restart bind + |