From 406657455e8cc3018fa64fee06973dea66d7cccf Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 6 Apr 2017 11:45:49 +0200 Subject: [PATCH] bind: quote variables --- bind/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bind/tasks/main.yml b/bind/tasks/main.yml index 320aa8a7..c3fa3ace 100644 --- a/bind/tasks/main.yml +++ b/bind/tasks/main.yml @@ -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 }}/"