I am relatively new to molecule so apologies if this is an ignorant question, but I am trying to run a shell script that we normally run as a provisioning step in a Vagrantfile. So far I am not finding a way to do this in all my googling or reading the molecule documentation.
The issue here is that I need to run this .ps1 script against any Windows box that I need to run molecule tests against before Ansible can connect to it. I tried doing this by adding a line under instance_raw_config_args like the example at the bottom of this post, but I get an error saying:
"### 2018-08-09 14:15:51 ###
There are errors in the configuration of this machine. Please fix
the following errors and try again:
shell provisioner:
* `path` for shell provisioner does not exist on the host system: /tmp/molecule/windows-iis/default/ConfigureRemotingForAnsible.ps1"
platforms:
- name: win2012r2
box: win2012r2
memory: 2048
instance_raw_config_args:
- "vm.network 'forwarded_port', guest: 5985, host: 5985"
- "vm.provision :shell, path: 'ConfigureRemotingForAnsible.ps1'"