Skip to content

Commit

Permalink
Update molecule configuration to work with 3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
xbinois committed Feb 25, 2020
1 parent ea0b07c commit 68f3644
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 65 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ env:
- ROLE_NAME: glpi
matrix:
- MOLECULE_DISTRIB: debian10:latest
MOLECULE_PLAYBOOK: debian10-playbook.yml

install:
- pip install molecule docker
- pip install molecule yamllint ansible-lint docker

before_script:
- cd ../
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/yaml-lint.yml → .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
extends: default
rules:
line-length:
max: 255
max: 160
level: warning
14 changes: 0 additions & 14 deletions molecule/default/Dockerfile.j2

This file was deleted.

22 changes: 0 additions & 22 deletions molecule/default/INSTALL.rst

This file was deleted.

File renamed without changes.
15 changes: 3 additions & 12 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-file: molecule/default/yaml-lint.yml
lint: |
yamllint .
ansible-lint
platforms:
- name: instance
image: "thetarto/ansible-${MOLECULE_DISTRIB}"
Expand All @@ -17,11 +16,3 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ${MOLECULE_PLAYBOOK}
verifier:
name: testinfra
lint:
name: flake8
14 changes: 0 additions & 14 deletions molecule/default/tests/test_default.py

This file was deleted.

0 comments on commit 68f3644

Please sign in to comment.