1
0
Fork 0

Include a root configuration for molecule
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:
Daniele Tricoli 2021-09-11 05:37:29 +02:00
parent 6708ba162a
commit 6abd466c50
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
- name: Converge
hosts: all
tasks:
- name: Test sshd role
include_role:
name: sshd

View File

@ -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

View File

@ -0,0 +1,3 @@
---
- name: Verify sshd role
import_playbook: ../../roles/sshd/molecule/default/verify.yml