redhat-nfvpe / ansible-role-vm-spinup

Sets up a virtualization host and spins up libvirt VMs for labs
Apache License 2.0
3 stars 7 forks source link

Clean up lint issues in role #3

Closed leifmadsen closed 6 years ago

leifmadsen commented 6 years ago

Instead of ignoring a failed command (because the VM isn't actually available to be remove), pull back a list of VMs using the virt module and then add a when clause to the commands.

Also changes from shell to command module so allow for a clean pass of ansible-lint.