Ajout tests molecule
This commit is contained in:
parent
38e50cf95d
commit
901f75aab8
7
molecule/default/converge.yml
Normal file
7
molecule/default/converge.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "Include ansible_msmtp_mailer"
|
||||||
|
include_role:
|
||||||
|
name: "ansible_msmtp_mailer"
|
26
molecule/default/molecule.yml
Normal file
26
molecule/default/molecule.yml
Normal 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
|
11
molecule/default/verify.yml
Normal file
11
molecule/default/verify.yml
Normal 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
|
Loading…
Reference in a new issue