openqa/worker: make some file existence checks safer
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
df75f880d1
commit
f7c87b0f75
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue