Skip to content

Commit

Permalink
Updates for molecule 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Apr 13, 2020
1 parent 92b9e0d commit 8626b02
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

install:
- sudo modprobe ip6_tables
- pip install molecule docker
- pip install molecule yamllint ansible-lint flake8 docker pytest testinfra

script:
- molecule test
Expand Down
1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
extends: default

rules:
Expand Down
File renamed without changes.
13 changes: 5 additions & 8 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1804}-ansible:latest"
Expand All @@ -17,11 +20,5 @@ provisioner:
name: ansible
playbooks:
prepare: prepare.yml
lint:
name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
2 changes: 2 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
update_cache: true
state: latest
when: ansible_os_family == 'RedHat'
tags:
- skip_ansible_lint

- name: Install dependencies
package:
Expand Down

0 comments on commit 8626b02

Please sign in to comment.