Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67155 - [molecule-vagrant] Missing its playbooks

Attached to Project: Community Packages
Opened by Marc Straube (durag) - Tuesday, 30 June 2020, 15:26 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 30 June 2020, 15:48 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Christian Rebischke (Shibumi)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description:

It is not possible to run molecule tests when using the vagrant driver. The box neither gets downloaded nor started, because the associated playbooks cannot be found.


If "molecule test" is run, the converge playbook ends with the following message:
-------------------------------------------
--> Action: 'create'
Skipping, create action has no playbook.
--> Scenario: 'default'
--> Action: 'prepare'
Skipping, prepare playbook not configured.
--> Scenario: 'default'
--> Action: 'converge'

PLAY [Converge] ****************************************************************

TASK [Gathering Facts] *********************************************************
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname instance: Name or service not known", "unreachable": true}

PLAY RECAP *********************************************************************
instance : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0



Additional info:

* package versions:
- molecule 3.0.4-3
- molecule-vagrant 0.2-1

* link to upstream bug report, if any:
There has been an upstream bug prior to version 0.2: https://github.com/ansible-community/molecule-vagrant/issues/8

Steps to reproduce:

You can reproduce the bug with the following files:

myrole/molecule/default/molecule.yml
-------------------------------------------

dependency:
name: galaxy
driver:
name: vagrant
provider:
name: virtualbox
platforms:
- name: instance
box: archlinux/archlinux
provisioner:
name: ansible
config_options:
defaults:
interpreter_python: auto_silent
verifier:
name: ansible
-------------------------------------------



myrole/molecule/default/converge.yml
-------------------------------------------

---
- name: Converge
hosts: all
roles:
- myrole



myrole/tasks/main.yml
-------------------------------------------

---
- debug:
msg: I'm here

This task depends upon

Comment by Marc Straube (durag) - Tuesday, 30 June 2020, 15:32 GMT
Because of the missing indentation of the files in my report I've added an archive which contains the test role.

Loading...