Comments (2)
Thanks for reporting - would you mind pasting the (relevant) Ansible logs, and version numbers you're using ? That 'll help troubleshooting.
from ansible-role-virtualbox-guest.
@PeterMosmans I don't know if it helps, but I was having the same problem, for some reason it was not trying to download the ISO file. So I went to your code and remove this
- name: Copy ISO file from guest to host
copy:
src: "{{ local_virtualbox_iso }}"
dest: "{{ virtualbox_iso }}"
owner: root
group: root
mode: "0644"
when: local_virtualbox_iso is defined and virtualbox_iso is defined
- name: Check if the ISO file is present on the host
stat:
path: "{{ virtualbox_iso }}"
register: file_path
ignore_errors: yes
- name: Check if the CD is present on the host
stat:
path: "/dev/sr0"
register: file_path
ignore_errors: yes
when: file_path.stat is not defined or not file_path.stat.exists
Then it started to work (it downloaded the file, and when I put the code back it went fine)
I don't know if it is because I don't have the cd-rom (/dev/sr0) it was thinking that it was 'okay' and was going to try to use it or something else.
I don't have the debug log (I'm learning Ansible) but I have some basic logs here, I don't know if it helps
PLAY [Install VBox Guest] ****************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************
ok: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Remove OS installation of virtualbox guest additions] **********************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Determine the host version] ************************************************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Check if virtualbox_version could be determined] ***************************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Override virtualbox_version if defaults set to auto] ***********************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Determine if (the requested version of) vboxguestadditions is installed] ***************************************************
changed: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Copy ISO file from guest to host] ******************************************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Check if the ISO file is present on the host] ******************************************************************************
ok: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Check if the CD is present on the host] ************************************************************************************
ok: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : debug] *********************************************************************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Download ISO file when the requested version is not present on the host] ***************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Re-check if the ISO file is present on the host] ***************************************************************************
skipping: [lab-tftp-ftp-server-1]
TASK [PeterMosmans.virtualbox-guest : Fail if CD or ISO file is still not present on the host] *******************************************************************
fatal: [lab-tftp-ftp-server-1]: FAILED! => {"changed": false, "msg": "Could not find necessary CD or ISO file on the host, nor download it"}
If you need some more logs let me know how to enable and collect then so I can try to reproduce here.
Tks
from ansible-role-virtualbox-guest.
Related Issues (12)
- Use mount module instead of mount command
- The check for the ISO in /root does not seem to work HOT 2
- Sometimes a sudo password is required, sometimes not? HOT 2
- Rewrite Ansible warning on the use of jinja2 parameters HOT 2
- Does it work for CentOS7? HOT 2
- Error: privilege output closed while waiting for password prompt HOT 3
- Resolve versioning conflicts HOT 1
- Unsupported parameters HOT 3
- Make idempotent install command Ubuntu compatible HOT 6
- task canceled with ubuntu official image HOT 8
- idea: upgrade kernel before install virtualbox additions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-virtualbox-guest.