forked from evolix/ansible-roles
Fix some mistakes
This commit is contained in:
parent
e930a8b7c8
commit
3fb04d177a
|
@ -6,7 +6,7 @@
|
|||
- name: Modify OPTIONS in /etc/default/bind9
|
||||
replace:
|
||||
dest: /etc/default/bind9
|
||||
regexp: '^(OPTIONS ((?).)*)$'
|
||||
regexp: '^OPTIONS.*'
|
||||
replace: 'OPTIONS="-u bind -t /var/chroot-bind"'
|
||||
|
||||
- name: Create /etc/systemd/system/bind9.service
|
||||
|
@ -21,7 +21,7 @@
|
|||
|
||||
- name: Fill out /etc/systemd/system/bind9.service
|
||||
blockinfile:
|
||||
path: "/etc/systemd/system/bind9.service"
|
||||
dest: /etc/systemd/system/bind9.service
|
||||
block: |
|
||||
[Unit]
|
||||
Description=BIND Domain Name Server
|
||||
|
@ -66,7 +66,7 @@
|
|||
|
||||
- name: Move bind to /var/chroot-bind/etc/
|
||||
command: mv /etc/bind/ /var/chroot-bind/etc/
|
||||
when: bind_stat.stat.exists
|
||||
when: bind_stat.stat.exists and bind_stat.stat.islnk == False
|
||||
|
||||
- name: Create symlink
|
||||
file:
|
||||
|
@ -90,7 +90,7 @@
|
|||
|
||||
- name: Create run directory
|
||||
file:
|
||||
path: "/var/{{ item }}"
|
||||
path: "/var/run/bind/run"
|
||||
state: directory
|
||||
owner: root
|
||||
group: bind
|
||||
|
|
Loading…
Reference in a new issue