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

Update to molecule v3

parent 102073a7
No related branches found
No related tags found
No related merge requests found
Pipeline #40310 passed
exclude_paths:
- molecule/default/create.yml
skip_list:
- '602'
- '204'
- '208'
- '106'
[flake8]
ignore = E501
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 python sudo python-devel python2-dnf bash && 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,12 +3,13 @@ dependency:
name: galaxy
options:
role-file: roles/requirements.yml
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ../../playbook.yml
inventory:
......@@ -19,8 +20,6 @@ scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
driver:
name: vagrant
provider:
......
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