csmart / ansible-role-virt-infra

Define and manage guests and networks on a KVM host with Ansible
GNU General Public License v3.0
67 stars 48 forks source link

get the path of vbmc for use with commands #30

Closed csmart closed 4 years ago

csmart commented 4 years ago

On distros like CentOS, /usr/local/bin is not in the sudoers path. This means that all vbmc commands fail.

Rather than modify secure_path in /etc/sudoers, let's just get the path and use that. This makes vbmc work, but also means the vbmc from the user's path will be used.

Fixes #28