Hello,
I am unable to get molecule to work.
Here's the output when I try to run:
molecule test
--> Validating schema
/home/sudheer/workspace/sudheer-projects/ansible-role-ruby/molecule/default/molecule.yml.
Validation completed successfully.
--> Test matrix
└── default
├── destroy
├── syntax
├── create
├── prepare
├── converge
├── lint
├── side_effect
├── verify
└── destroy
--> Scenario: 'default'
--> Action: 'destroy'
PLAY [Destroy]
*****************************************************************
TASK [Destroy molecule instance(s)]
********************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception
occurred while templating '{{ lookup('file', molecule_file) |
molecule_from_yaml }}'. Error was a <class
'ansible.errors.AnsibleError'>, original message: template error while
templating string: no filter named 'molecule_from_yaml'. String: {{
lookup('file', molecule_file) | molecule_from_yaml }}"}
PLAY RECAP
*********************************************************************
localhost : ok=0 changed=0 unreachable=0
failed=1
ERROR:
An error occurred during the test sequence action: 'destroy'. Cleaning up.
--> Scenario: 'default'
--> Action: 'destroy'
PLAY [Destroy]
*****************************************************************
TASK [Destroy molecule instance(s)]
********************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception
occurred while templating '{{ lookup('file', molecule_file) |
molecule_from_yaml }}'. Error was a <class
'ansible.errors.AnsibleError'>, original message: template error while
templating string: no filter named 'molecule_from_yaml'. String: {{
lookup('file', molecule_file) | molecule_from_yaml }}"}
PLAY RECAP
*********************************************************************
localhost : ok=0 changed=0 unreachable=0
failed=1
ERROR:
I have installed Docker and molecule packages. I am able to use Docker
outside of molecule on the same host.
I have installed these pacakges.
python3-molecule.noarch 2.19-2.fc29 @updates
python2-docker.noarch 3.5.0-1.fc29 @fedora
docker.x86_64 2:1.13.1-62.git9cb56fd.fc29 @fedora
I have tried removing python2-docker and installing python3-docker.
There's no change in result.
Am I missing something?
-
Sudheer
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx