This commit is contained in:
Gitouche 2021-07-12 21:39:30 +02:00
parent 901f75aab8
commit 74c5ce114b
4 changed files with 10 additions and 28 deletions

View file

@ -1,26 +0,0 @@
---
services: docker
env:
- distro: ubuntu1804
- distro: ubuntu1604
- distro: debian10
- distro: debian9
- distro: debian8
- distro: alpine
# - distro: archlinux
script:
# Configure test script so we can run extra tests after playbook is run
- export container_id=$(date +%s)
- export cleanup=false
# Download test shim.
- wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/chriswayg/7cf5afda283252219c37c447ccf3ad88/raw/ansible-role-test.sh
- chmod +x ${PWD}/tests/test.sh
# Run tests.
- ${PWD}/tests/test.sh
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View file

@ -36,7 +36,8 @@ msmtp_auto_from: 'off'
msmtp_log: file msmtp_log: file
msmtp_logfile: ~/.msmtp.log msmtp_logfile: ~/.msmtp.log
## Aliases mail account ( only msmtp_alias_default is required the rest is optional ) ## Aliases mail account
## ( only msmtp_alias_default is required the rest is optional )
msmtp_alias_default: emailer.tests@yandex.com msmtp_alias_default: emailer.tests@yandex.com
msmtp_alias_root: emailer.tests@yandex.com msmtp_alias_root: emailer.tests@yandex.com
msmtp_alias_cron: emailer.tests@yandex.com msmtp_alias_cron: emailer.tests@yandex.com

View file

@ -1,7 +1,10 @@
--- ---
# sending test mail using 'mail' command to root and test recipient # sending test mail using 'mail' command to root and test recipient
- name: test mail - name: test mail
shell: echo "Test mail from new/updated mSTMP\n\n $(uname -a)" | mail -s "Test mSMTP at $(hostname -f)" root "{{ msmtp_test_mail_recipient }}" shell: |
echo "Test mail from new/updated mSTMP\n\n $(uname -a)" |
mail -s "Test mSMTP at $(hostname -f)"
root "{{ msmtp_test_mail_recipient }}"
tags: mail tags: mail
when: msmtp_send_test_mail when: msmtp_send_test_mail
async: 30 async: 30

View file

@ -3,6 +3,10 @@ dependency:
name: galaxy name: galaxy
driver: driver:
name: docker name: docker
lint: |
set -e
yamllint .
ansible-lint
platforms: platforms:
- name: centos8 - name: centos8
image: geerlingguy/docker-centos8-ansible:latest image: geerlingguy/docker-centos8-ansible:latest