Skip to content

Commit

Permalink
check_mode: no
Browse files Browse the repository at this point in the history
  • Loading branch information
martbhell committed Nov 23, 2016
1 parent de93134 commit 3d5685f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- name: find mellanox PCI devices
shell: "{{ rdma_lspci_path }}|grep Mellanox|wc -l"
register: reg_rdma_mellanox_devices
check_mode: yes
check_mode: no
when: rdma_configure_single_port or rdma_configure_dual_ports
changed_when: False

Expand All @@ -30,7 +30,7 @@
- name: find mellanox PCI device name - only if we find only one Mellanox device
shell: "{{ rdma_lspci_path }}|grep Mellanox|awk '{print $1}'"
register: reg_rdma_mellanox_device
check_mode: yes
check_mode: no
when: rdma_configure_single_port or rdma_configure_dual_ports and reg_rdma_mellanox_devices.stdout == "1"
changed_when: False

Expand Down

0 comments on commit 3d5685f

Please sign in to comment.