Fixes ansible deprecation warnings
This implements the recommended syntax for searching to get rid of this; --- [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|search` use `result is search`. This feature will be removed in version 2.9. --- Change-Id: Ia8c6b66a4e2c6336e9374da6e3fdd81e17ba2346
This commit is contained in:
parent
284341bf24
commit
7d875523d8
@ -21,8 +21,8 @@
|
||||
- name: Disable libvirt default network
|
||||
command: "virsh net-autostart default --disable"
|
||||
failed_when: false
|
||||
when: default_net.stdout|search('default')
|
||||
when: default_net.stdout.find('default') != -1
|
||||
|
||||
- name: Destroy libvirt default network
|
||||
command: "virsh net-destroy default"
|
||||
when: default_net.stdout|search('default')
|
||||
when: default_net.stdout.find('default') != -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user