Skip to content

Commit 06c6589

Browse files
committed
add python3 for pip module and fix regex for wwid/uid lun
1 parent d27586e commit 06c6589

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

olvm/ovirt_add_storage_domain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
- name: Extract LUN IDs
2525
ansible.builtin.set_fact:
26-
lun_ids: "{{ multipath_output.stdout_lines | map('regex_search', '^([0-9a-f]{33})') | select('string') | list }}"
26+
lun_ids: "{{ multipath_output.stdout_lines | select('search', '^[a-f0-9]') | map('split', ' ') | map(attribute=0) | list }}"
2727
run_once: true
2828

2929
- name: Display LUN IDs

olvm/provision_olvm_engine.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
delegate_to: "{{ groups['engine'][0] }}"
8383
run_once: true
8484
environment: "{{ pip_proxy_env | default({}) }}"
85+
vars:
86+
ansible_python_interpreter: "/usr/bin/python3"
8587

8688
- name: Check if OLVM Engine is installed # noqa: run-once[task]
8789
ansible.builtin.stat:

0 commit comments

Comments
 (0)