remount-{on,off}: shell command is more precise
This commit is contained in:
parent
b095e4ffac
commit
b85a9178e3
|
@ -9,12 +9,10 @@
|
||||||
# partitions:
|
# partitions:
|
||||||
# - "/tmp"
|
# - "/tmp"
|
||||||
# - "/usr"
|
# - "/usr"
|
||||||
#
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Get mount options for partitions
|
- name: Get mount options for partitions
|
||||||
shell: mount |grep " {{ item }} "
|
shell: "mount | grep 'on {{ item }} type'"
|
||||||
register: mount
|
register: mount
|
||||||
changed_when: False
|
changed_when: False
|
||||||
failed_when: False
|
failed_when: False
|
||||||
|
|
|
@ -10,12 +10,10 @@
|
||||||
# partitions:
|
# partitions:
|
||||||
# - "/tmp"
|
# - "/tmp"
|
||||||
# - "/usr"
|
# - "/usr"
|
||||||
#
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Get mount options for partitions
|
- name: Get mount options for partitions
|
||||||
shell: mount |grep " {{ item }} "
|
shell: "mount | grep 'on {{ item }} type'"
|
||||||
register: mount
|
register: mount
|
||||||
changed_when: False
|
changed_when: False
|
||||||
failed_when: False
|
failed_when: False
|
||||||
|
|
Loading…
Reference in a new issue