Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
test(molecule): standardize molecule.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Feb 18, 2023
1 parent a1cea68 commit e588054
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
21 changes: 17 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
requirements-file: requirements.yml
timeout: "120"
force: false
driver:
name: delegated
options:
managed: False
ansible_connection_options:
ansible_connection: local
ansible_sudo_pass: "${ANSIBLE_SUDO_PASSWORD}"
lint: |
set -e
yamllint -f standard .
ansible-lint
platforms:
- name: instance
provisioner:
name: ansible
config_options:
privilege_escalation:
become_method: sudo
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint
5 changes: 5 additions & 0 deletions molecule/mock_install_no_update/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
requirements-file: requirements.yml
timeout: "120"
force: false
driver:
name: delegated
options:
Expand Down
9 changes: 7 additions & 2 deletions molecule/mock_install_with_update/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
requirements-file: requirements.yml
timeout: "120"
force: false
driver:
name: delegated
options:
Expand All @@ -15,8 +20,6 @@ provisioner:
config_options:
privilege_escalation:
become_method: sudo
verifier:
name: ansible
scenario:
create_sequence:
- dependency
Expand Down Expand Up @@ -54,3 +57,5 @@ scenario:
- verify
- cleanup
- destroy
verifier:
name: ansible
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
collections: []
roles: []

0 comments on commit e588054

Please sign in to comment.