Skip to content

Commit eeb73d7

Browse files
committed
Proper way of installing molecule with docker tests.
1 parent 814d4e9 commit eeb73d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/molecule-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: '3.x'
2828

2929
- name: Install test dependencies.
30-
run: pip3 install ansible molecule[docker] yamllint ansible-lint
30+
run: pip3 install ansible molecule molecule-plugins[docker] yamllint ansible-lint
3131

3232
- name: Run Molecule tests.
3333
run: molecule test

molecule/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This directory contains an example Molecule configuration for an Ansible playboo
44

55
The Molecule configuration can be run locally or in a Continuous Integration (CI) environment, to ensure the playbook is always working correctly.
66

7-
To run the Molecule environment, you must have `molecule` (with it's `docker` driver) and the `docker` Python library installed:
7+
To run the Molecule environment, you must have `molecule` (with it's `docker` driver), `ansible`, and the `docker` Python library installed:
88

9-
pip3 install molecule[docker] docker
9+
pip3 install ansible molecule molecule-plugins[docker] docker
1010

1111
Additionally, there are lint tools configured to ensure code formatting is correct, so you need to make sure the lint tools are installed:
1212

tests/molecule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
# Install dependencies.
7-
pip3 install ansible molecule[docker] ansible-lint yamllint docker
7+
pip3 install ansible molecule molecule-plugins[docker] ansible-lint yamllint docker
88

99
cd molecule
1010

0 commit comments

Comments
 (0)