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
|
- name: Modify OPTIONS in /etc/default/bind9
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/default/bind9
|
dest: /etc/default/bind9
|
||||||
regexp: '^(OPTIONS ((?).)*)$'
|
regexp: '^OPTIONS.*'
|
||||||
replace: 'OPTIONS="-u bind -t /var/chroot-bind"'
|
replace: 'OPTIONS="-u bind -t /var/chroot-bind"'
|
||||||
|
|
||||||
- name: Create /etc/systemd/system/bind9.service
|
- name: Create /etc/systemd/system/bind9.service
|
||||||
|
@ -20,8 +20,8 @@
|
||||||
register: create_bind_systemd
|
register: create_bind_systemd
|
||||||
|
|
||||||
- name: Fill out /etc/systemd/system/bind9.service
|
- name: Fill out /etc/systemd/system/bind9.service
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "/etc/systemd/system/bind9.service"
|
dest: /etc/systemd/system/bind9.service
|
||||||
block: |
|
block: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=BIND Domain Name Server
|
Description=BIND Domain Name Server
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
- name: Move bind to /var/chroot-bind/etc/
|
- name: Move bind to /var/chroot-bind/etc/
|
||||||
command: mv /etc/bind/ /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
|
- name: Create symlink
|
||||||
file:
|
file:
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
|
|
||||||
- name: Create run directory
|
- name: Create run directory
|
||||||
file:
|
file:
|
||||||
path: "/var/{{ item }}"
|
path: "/var/run/bind/run"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: bind
|
group: bind
|
||||||
|
|
Loading…
Reference in a new issue