remount-usr: quote commands

This commit is contained in:
Jérémy Lecour 2017-11-15 12:21:30 +01:00 committed by Jérémy Lecour
parent d355532a24
commit 6007c98b43
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
--- ---
- name: remount usr - name: remount usr
command: mount -o remount /usr command: "mount -o remount /usr"
failed_when: false failed_when: false
args: args:
warn: no warn: no

View file

@ -1,6 +1,6 @@
--- ---
- name: check if /usr is a read-only partition - name: "check if /usr is a read-only partition"
command: grep -E " /usr.*ro" /proc/mounts command: 'grep -E " /usr.*ro" /proc/mounts'
args: args:
warn: no warn: no
changed_when: False changed_when: False
@ -8,8 +8,8 @@
check_mode: no check_mode: no
register: usr_partition register: usr_partition
- name: mount /usr in rw - name: "mount /usr in rw"
command: mount -o remount,rw /usr command: 'mount -o remount,rw /usr'
args: args:
warn: no warn: no
when: usr_partition.rc == 0 when: usr_partition.rc == 0