bind: quote variables
This commit is contained in:
parent
947f617f7d
commit
406657455e
|
@ -118,7 +118,7 @@
|
|||
register: named_pid
|
||||
|
||||
- name: Cat pid content
|
||||
command: cat /var/run/bind/run/named.pid > {{ bind_chroot_root }}/var/run/bind/run/named.pid
|
||||
command: "cat /var/run/bind/run/named.pid > {{ bind_chroot_root }}/var/run/bind/run/named.pid"
|
||||
when: named_pid.stat.isreg == True and not named_pid.stat.islnk
|
||||
|
||||
- name: Clean /var/run/bind/run/named.pid
|
||||
|
@ -146,7 +146,7 @@
|
|||
register: named_random
|
||||
|
||||
- name: mknod dev/random in chroot
|
||||
command: mknod {{ bind_chroot_root }}/dev/random c 1 3; chmod 666 {{ bind_chroot_root }}/dev/random
|
||||
command: "mknod {{ bind_chroot_root }}/dev/random c 1 3; chmod 666 {{ bind_chroot_root }}/dev/random"
|
||||
when: not named_random.stat.exists
|
||||
|
||||
- name: Copy essential libs
|
||||
|
@ -156,8 +156,8 @@
|
|||
- name: Copy bind
|
||||
copy:
|
||||
src: /usr/sbin/named
|
||||
dest: {{ bind_chroot_root }}/usr/sbin/
|
||||
dest: "{{ bind_chroot_root }}/usr/sbin/"
|
||||
remote_src: True
|
||||
|
||||
- name: Set the good rights
|
||||
command: chown -R bind:bind {{ bind_chroot_root }}/
|
||||
command: "chown -R bind:bind {{ bind_chroot_root }}/"
|
||||
|
|
Loading…
Reference in a new issue