remount-{on,off}: shell command is more precise

This commit is contained in:
Jérémy Lecour 2017-02-15 16:21:38 +01:00 committed by Jérémy Lecour
parent b095e4ffac
commit b85a9178e3
2 changed files with 2 additions and 6 deletions

View file

@ -9,12 +9,10 @@
# partitions:
# - "/tmp"
# - "/usr"
#
---
- name: Get mount options for partitions
shell: mount |grep " {{ item }} "
shell: "mount | grep 'on {{ item }} type'"
register: mount
changed_when: False
failed_when: False

View file

@ -10,12 +10,10 @@
# partitions:
# - "/tmp"
# - "/usr"
#
---
- name: Get mount options for partitions
shell: mount |grep " {{ item }} "
shell: "mount | grep 'on {{ item }} type'"
register: mount
changed_when: False
failed_when: False