Ajout tests molecule

This commit is contained in:
Gitouche 2021-07-03 21:06:48 +02:00
parent 38e50cf95d
commit 901f75aab8
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,7 @@
---
- name: Converge
hosts: all
tasks:
- name: "Include ansible_msmtp_mailer"
include_role:
name: "ansible_msmtp_mailer"

View file

@ -0,0 +1,26 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: centos8
image: geerlingguy/docker-centos8-ansible:latest
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
capabilities:
- SYS_ADMIN
pre_build_image: true
- name: rockylinux8
image: geerlingguy/docker-rockylinux8-ansible:latest
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
capabilities:
- SYS_ADMIN
pre_build_image: true
provisioner:
name: ansible
vefifier:
name: ansible

View file

@ -0,0 +1,11 @@
---
- name: Verify
hosts: all
tasks:
- name: Check if msmtp is correctly listening on port 25
wait_for:
host: 0.0.0.0
port: 25
search_regex: 220 localhost ESMTP msmtpd
timeout: 5