Skip to content

Commit

Permalink
[#28] Broken molecule.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Dec 20, 2020
1 parent e63a299 commit ef72d9d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ before_install:
install:
- curl https://gist.githubusercontent.com/030/fa2454b56c525286b39d549583173d8e/raw/c9f9cf439339819958e13cad1d5b5f719217d427/ansible-ci-requirements.sh | sudo bash # yamllint disable-line rule:line-length

before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-$ROLE_NAME $ORG_NAME.$ROLE_NAME
- cd $ORG_NAME.$ROLE_NAME

script:
- molecule test

Expand Down
5 changes: 4 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
hosts: all
become: true

vars:
nodejs_install_npm_user: root

roles:
- role: verdaccio.verdaccio
- role: ansible-verdaccio
16 changes: 14 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ driver:
name: docker
platforms:
- name: instance
image: docker.io/pycontribs/centos:8
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
scenario:
name: default
verifier:
name: ansible
name: testinfra
lint:
name: flake8

0 comments on commit ef72d9d

Please sign in to comment.