-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hi, I get the error written in the issue title when the role tries to auto detect the Virtualbox guest additions version.
I'm running ansible 2.6.1 with python 2.7.13. The guest VM is ubuntu 18.04 LTS running xubuntu desktop, the command I am running is as follows:
ansible-playbook -i ./hosts --limit=netboot_test --vault-password-file=./vault_pass.txt -u simon -K -v main.yml
and the playbook I am running looks like:
- hosts: testvms
become: true
roles:
- PeterMosmans.virtualbox-guest
- testvms
The -K option above causes ansible playbook command to prompt me for the sudo password and I haven't had a problem like this with any of my other roles or playbooks.
I get the same result when using become_method: sudo
The output that I get is as follows:
PLAY [testvms] **********************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************************************************************
Sunday 30 December 2018 20:25:10 +0000 (0:00:00.228) 0:00:33.487 *******
ok: [netboot_test]TASK [PeterMosmans.virtualbox-guest : remove os packages version of virtualbox guest additions] *************************************************************************************************************************************
Sunday 30 December 2018 20:25:15 +0000 (0:00:04.633) 0:00:38.120 *******
skipping: [netboot_test] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False"}TASK [PeterMosmans.virtualbox-guest : If virtualbox_version is set to auto then determine the host version] *************************************************************************************************************************
Sunday 30 December 2018 20:25:15 +0000 (0:00:00.250) 0:00:38.370 *******
fatal: [netboot_test]: FAILED! => {"msg": "privilege output closed while waiting for password prompt:\n/bin/sh: sudo: command not found\n"}
to retry, use: --limit @/cygdrive/d/test-server/gammavm/main.retry
Any help or suggestions appreciated.