From 6bddd0e6add50b0fe85f7b96335e4b45f6da039c Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 29 Jan 2021 15:06:02 +0000 Subject: [PATCH] Assure image is included for cotainers driver Needed-By: https://github.com/ansible-community/molecule-containers/pull/10 --- .../{{cookiecutter.scenario_name}}/molecule.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/molecule/cookiecutter/molecule/{{cookiecutter.role_name}}/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml b/src/molecule/cookiecutter/molecule/{{cookiecutter.role_name}}/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml index 9ecea39e3f..ffd7cc7a40 100644 --- a/src/molecule/cookiecutter/molecule/{{cookiecutter.role_name}}/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml +++ b/src/molecule/cookiecutter/molecule/{{cookiecutter.role_name}}/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml @@ -4,16 +4,10 @@ dependency: driver: name: {{ cookiecutter.driver_name }} platforms: -{%- if cookiecutter.driver_name == 'docker' %} - name: instance +{%- if cookiecutter.driver_name in ['containers', 'docker', 'podman'] %} image: docker.io/pycontribs/centos:8 pre_build_image: true -{%- elif cookiecutter.driver_name == 'podman' %} - - name: instance - image: docker.io/pycontribs/centos:8 - pre_build_image: true -{%- else %} - - name: instance {%- endif %} provisioner: name: {{ cookiecutter.provisioner_name }}