Commit 65216dc7 by Heechul Kim

modified bind tasks

parent dd2b3589
Showing with 12 additions and 9 deletions
......@@ -15,7 +15,7 @@
name: bind-utils
state: present
- name: Get bind source tarball from ftp://ftp.isc.org.
- name: Get bind source tarball from http://ftp.isc.org.
get_url:
url: http://ftp.isc.org/isc/bind9/{{ d['tag'] }}/bind-{{ d['tag'] }}.tar.gz
dest: /tmp/bind-{{ d['tag'] }}.tar.gz
......@@ -115,19 +115,22 @@
mode: 0755
- name: Change ownership of /data to named:named
command: chown -R named:named /data
file:
path: /data
state: directory
owner: named
group: named
recurse: yes
- name: Copy named.service systemd file.
copy:
src: named.service
dest: /etc/systemd/system/named.service
- name: Reload systemd.
command: systemctl daemon-reload
- name: Enable named service
command: systemctl enable named.service
- name: Run named service
command: systemctl start named.service
systemd:
name: named
daemon-reload: yes
enabled: yes
state: started
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment