Update molecule configuration to work with 3.0.

This commit is contained in:
Jeff Geerling 2020-02-20 14:20:44 -06:00
parent 736ad7f351
commit 1af676c5ba
4 changed files with 4 additions and 29 deletions

View File

@ -15,7 +15,7 @@ env:
install:
# Install test dependencies.
- pip install molecule docker
- pip install molecule yamllint ansible-lint docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.

View File

@ -4,9 +4,8 @@ dependency:
driver:
name: docker
lint:
name: yamllint
options:
config-file: molecule/default/yaml-lint.yml
yamllint .
ansible-lint
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
@ -17,13 +16,7 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ${MOLECULE_PLAYBOOK:-playbook.yml}
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8

View File

@ -1,12 +0,0 @@
---
- name: Converge
hosts: all
become: true
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
roles:
- role: geerlingguy.docker

View File

@ -1,6 +0,0 @@
---
extends: default
rules:
line-length:
max: 200
level: warning