Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Barrett committed Oct 30, 2024
1 parent 9b5b40d commit 34ed0d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,7 @@ jobs:
- name: 'Install dependencies'
run: |
python -m pip install --upgrade pip
pip install ansible ansible-lint molecule[docker]
- name: 'Install Docker'
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
- name: 'Start Docker'
run: sudo service docker start

- name: 'Verify Docker Installation'
run: docker --version
pip install ansible ansible-lint molecule
- name: 'Run Molecule Test'
run: molecule test
11 changes: 5 additions & 6 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
dependency:
name: galaxy
driver:
name: docker
name: delegated
platforms:
- name: instance
image: "python:3.9" # Specify a base image
privileged: true
pre_build_image: true
- name: localhost
address: 127.0.0.1
managed: False # Prevents Molecule from trying to manage instance creation/deletion
provisioner:
name: ansible
lint:
Expand All @@ -17,7 +16,6 @@ scenario:
name: default
test_sequence:
- lint
- destroy
- dependency
- create
- converge
Expand All @@ -26,3 +24,4 @@ scenario:
- destroy
verifier:
name: ansible

0 comments on commit 34ed0d8

Please # to comment.