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
command: mount -o remount /usr
command: "mount -o remount /usr"
failed_when: false
args:
warn: no

View file

@ -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