Skip to content
Snippets Groups Projects
Commit 0993dde2 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Update to molecule v3

parent b127c212
No related branches found
No related tags found
No related merge requests found
Pipeline #40286 passed
exclude_paths:
- molecule/default/create.yml
skip_list:
- '602'
- '204'
- '208'
- '106'
[flake8]
ignore = E501,W503,E203
ignore = E501,W503,E203,E402
---
extends: default
rules:
......
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 sudo bash iproute && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
......@@ -3,15 +3,16 @@ dependency:
name: galaxy
options:
role-file: roles/requirements.yml
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
provisioner:
name: ansible
config_options:
defaults:
gather_timeout: 20
lint:
name: ansible-lint
playbooks:
converge: ../../playbook.yml
inventory:
......@@ -22,8 +23,6 @@ scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
driver:
name: docker
platforms:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment