instance_raw_config_args vm.provision ignored
See original GitHub issueIssue Type
- Bug report
Molecule and Ansible details
ansible 2.10.4
config file = None
configured module search path = ['/home/vlad/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/vlad/.local/lib/python3.8/site-packages/ansible
executable location = /home/vlad/.local/bin/ansible
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
molecule 3.2.2 using python 3.8
ansible:2.10.4
delegated:3.2.2 from molecule
vagrant:0.6.1 from molecule_vagrant
Molecule installation method (one of):
- pip
Ansible installation method (one of):
- OS package
Desired Behavior
I want to install desktop environment on Ubuntu 20.04 using
instance_raw_config_args:
- 'vm.provision :shell, path: "${MOLECULE_PROJECT_DIRECTORY}/../../environment/scripts/install_gnome_desktop_ubuntu.sh"'
Script looks like:
#!/usr/bin/env --split-string=bash -eux
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install --yes tasksel
tasksel install ubuntu-desktop
``
# Actual Behaviour
No output at all even using --debug
Nothing happen no GUI. But when I run it manually everything works as expected. I done it using prepare.yml but it looks more like workaround
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Basic Usage - Provisioning | Vagrant - HashiCorp Developer
Naming provisioners is simple. The first argument to config.vm.provision becomes the name, and then a type option is used to specify the provisioner...
Read more >When i do a vagrant provisioning, can i ignore some provision ...
One simple solution, but a little bit hack method is. You can pass environment variables while running vagrant reload command like this
Read more >Running Specific Shell Scripts with vagrant provision
I can only run the provision by type "vagrant provision --provision-with shell", which run all the shell scripts. guest.vm.provision "shell" ...
Read more >Vagrant Shell Script Provision - deparkes
Vagrant Shell Script Provision is a simple way to provision vagrant virtual machines. This post gets you going with single and multiple ...
Read more >Vagrant beyond the basics - Fedora Magazine
Ignoring the specific software setup for this, to simply create the virtual machines ready for provisioning you could use something like ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
the
provision
configuration is shown in the example and that’s it. Same for a bunch of other parameters. The doc is in pretty bad shape. It’s has been on my todo for quite some time but my priority atm is on the proper multi platform support. Feel free to open a bug on molecule-vagrant complaining how bad is the doc.I suggest convert this issue into enchantment to extend the documentation