Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Fixes #893. Check if the target fs exists. #894

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion roles/openshift-volume-quota/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
- name: Create filesystem for /var/lib/origin/openshift.local.volumes
- name: Create filesystem for /var/lib/origin/openshift.local.volumes only if it's not present.
when:
- >-
ansible_mounts | json_query("[?device=='" + local_volumes_device + "']") | length == 0
- >-
ansible_mounts | json_query("[?mount=='" + local_volumes_path + "']") | length == 0
filesystem:
fstype: "{{ local_volumes_fstype }}"
dev: "{{ local_volumes_device }}"
Expand Down