Include a root configuration for molecule
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This way we are able to test all the roles directly invoking molecule from the root of the repository.
This commit is contained in:
parent
6708ba162a
commit
6abd466c50
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Test sshd role
|
||||
include_role:
|
||||
name: sshd
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
scenario:
|
||||
name: default
|
||||
dependency:
|
||||
name: galaxy
|
||||
enabled: false
|
||||
driver:
|
||||
name: podman
|
||||
platforms:
|
||||
- name: debian11
|
||||
image: jrei/systemd-debian:11
|
||||
command: /lib/systemd/systemd
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
provisioner:
|
||||
name: ansible
|
||||
env:
|
||||
ANSIBLE_ROLES_PATH: ../../roles
|
||||
verifier:
|
||||
name: ansible
|
||||
lint: |
|
||||
yamllint .
|
||||
ansible-lint
|
||||
flake8
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Verify sshd role
|
||||
import_playbook: ../../roles/sshd/molecule/default/verify.yml
|
Loading…
Reference in New Issue