From 6007c98b43224f0bea477730a5c82520071f9940 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 15 Nov 2017 12:21:30 +0100 Subject: [PATCH] remount-usr: quote commands --- remount-usr/handlers/main.yml | 2 +- remount-usr/tasks/main.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/remount-usr/handlers/main.yml b/remount-usr/handlers/main.yml index c75bacb7..5f197e78 100644 --- a/remount-usr/handlers/main.yml +++ b/remount-usr/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: remount usr - command: mount -o remount /usr + command: "mount -o remount /usr" failed_when: false args: warn: no diff --git a/remount-usr/tasks/main.yml b/remount-usr/tasks/main.yml index 40fddc30..cdc7e10e 100644 --- a/remount-usr/tasks/main.yml +++ b/remount-usr/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: check if /usr is a read-only partition - command: grep -E " /usr.*ro" /proc/mounts +- name: "check if /usr is a read-only partition" + command: 'grep -E " /usr.*ro" /proc/mounts' args: warn: no changed_when: False @@ -8,8 +8,8 @@ check_mode: no register: usr_partition -- name: mount /usr in rw - command: mount -o remount,rw /usr +- name: "mount /usr in rw" + command: 'mount -o remount,rw /usr' args: warn: no when: usr_partition.rc == 0