]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Always ifup the secondary NIC 627/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 20 May 2021 16:57:34 +0000 (12:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 20 May 2021 16:57:34 +0000 (12:57 -0400)
If the NIC was already down, `ifdown` causes the playbook to fail.  We want to always (at least attempt to) take the NIC down, then bring it back up.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/secondary_nic.yml

index 84168621ecd9739045fb55b1d764420e3b3c9e95..8eb2ef693e75ecd2044091b384a9b06bb144500b 100644 (file)
@@ -74,7 +74,7 @@
     - ansible_os_family == 'RedHat'
 
 - name: "Bounce {{ nic_to_configure }}"
-  shell: "ifdown {{ nic_to_configure }} && ifup {{ nic_to_configure }}"
+  shell: "ifdown {{ nic_to_configure }}; ifup {{ nic_to_configure }}"
   when:
     - wrote_network_config is changed
     - ansible_os_family == 'RedHat'