mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
fixed ansible lint error: set -o pipefail added.
This commit is contained in:
1 parent
4058ee42e6
commit
e2c4882dba
1 file changed
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
- name: Get the list of mounted filesystems
|
- name: Get the list of mounted filesystems
|
||||||
shell: cat /proc/mounts | awk '{ print $2}' | grep -E "^{{ mounted_fs }}"
|
shell: set -o pipefail && cat /proc/mounts | awk '{ print $2}' | grep -E "^{{ mounted_fs }}"
|
||||||
register: get_mounted_filesystems
|
register: get_mounted_filesystems
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: get_mounted_filesystems.stdout | length > 0
|
changed_when: get_mounted_filesystems.stdout | length > 0
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user