You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing a role using a driver, often I would like to reference the existing driver play without overriding the whole thing.
A specific example would be to create other resources in docker that aren't available in the driver in the create step. Then, call out to the original docker driver create play after creating the resources I want.
Creating a create.yml play like the following would be helpful:
---
- name: Do my custom stuff
hosts: localhost
tasks:
- name: Define my custom resource
debug: msg="foo"
- import_playbook: "{{ molecule_driver_docker_playbook_dir }}/create.yml"
- name: Do more custom stuff
hosts: localhost
tasks:
- name: Define more custom resources
debug: msg="bar"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When testing a role using a driver, often I would like to reference the existing driver play without overriding the whole thing.
A specific example would be to create other resources in docker that aren't available in the driver in the create step. Then, call out to the original docker driver create play after creating the resources I want.
Creating a
create.yml
play like the following would be helpful:Is there a way I can do this already?
Beta Was this translation helpful? Give feedback.
All reactions