mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
openqa/worker: make some file existence checks safer
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
@@ -29,11 +29,11 @@
|
||||
|
||||
- name: Make sure usb0 doesn't get in our way
|
||||
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-usb0 regexp="^ONBOOT=" line="ONBOOT=no"
|
||||
when: (ifcfgusb0.stat.exists == True) and (deployment_type is defined)
|
||||
when: (ifcfgusb0.stat.exists is defined) and (ifcfgusb0.stat.exists == True) and (deployment_type is defined)
|
||||
|
||||
- name: Make sure eth1 doesn't get in our way
|
||||
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth1 regexp="^ONBOOT=" line="ONBOOT=no"
|
||||
when: (ifcfgeth1.stat.exists == True) and (deployment_type is defined)
|
||||
when: (ifcfgeth1.stat.exists is defined) and (ifcfgeth1.stat.exists == True) and (deployment_type is defined)
|
||||
|
||||
- name: Start openvswitch service
|
||||
service: name=openvswitch enabled=yes state=started
|
||||
|
||||
Reference in New Issue
Block a user