Skip to content

Commit

Permalink
Merge pull request #571 from radez/r660_nvme
Browse files Browse the repository at this point in the history
enable disk2 nvme for r660 hv nodes
  • Loading branch information
josecastillolema authored Nov 20, 2024
2 parents 9a0881b + 02b578f commit 66a9a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/create-inventory/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@
loop_control:
index_var: idx

- name: Enable disk2_enable for r650, r750, r730xd, and r930 with nvme0n1
- name: Enable disk2_enable for r660, r650, r750, r730xd, and r930 with nvme0n1
set_fact:
ocpinventory_hv_nodes: "{{ ocpinventory_hv_nodes[:idx] + [ocpinventory_hv_nodes[idx] | combine({'disk2_enable': true, 'disk2_device': 'nvme0n1'})] + ocpinventory_hv_nodes[idx + 1:] }}"
when:
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r750', 'r730xd', 'r930']
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r660', 'r750', 'r730xd', 'r930']
loop: "{{ ocpinventory_hv_nodes }}"
loop_control:
index_var: idx
Expand Down

0 comments on commit 66a9a46

Please sign in to comment.