Skip to content

Commit

Permalink
Merge pull request #155 from alex-basinov/nvme-disks
Browse files Browse the repository at this point in the history
Resolve a warning message about 'item' variable
  • Loading branch information
mfielding authored Nov 30, 2023
2 parents 7739c91 + c6d57a2 commit 8bb0f67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roles/common/tasks/populate-asm-disks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- name: Resolve the symlinks
ansible.builtin.shell:
cmd: "realpath {{ item }}"
cmd: "realpath {{ item }}"
loop: "{{ asm_disks | map(attribute='disks') | flatten | map(attribute='blk_device') }}"
register: realpath_output
tags: populate-asm-disks
Expand Down Expand Up @@ -38,5 +38,5 @@
set_fact:
asm_disks: "{{asm_disks_with_partitions}}"
when:
- asm_disks_with_partitions is defined
- asm_disks_with_partitions is defined
tags: populate-asm-disks
4 changes: 3 additions & 1 deletion roles/ora-host/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,13 @@
- include_role:
name: common
tasks_from: populate-asm-disks.yml
when: "'mapper' not in item.1.blk_device"
when: "'mapper' not in outer_item.1.blk_device"
run_once: true
with_subelements:
- "{{ asm_disks }}"
- disks
loop_control:
loop_var: outer_item

- name: (debug) asm disk configuration
debug:
Expand Down

0 comments on commit 8bb0f67

Please sign in to comment.