remount-{on,off}: shell command is more precise
This commit is contained in:
parent
b095e4ffac
commit
b85a9178e3
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue