question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

instance_raw_config_args vm.provision ignored

See original GitHub issue

Issue 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:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
apatardcommented, May 19, 2021

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.

0reactions
VladAdGadcommented, Jun 18, 2021

I suggest convert this issue into enchantment to extend the documentation

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found