yamllint
This commit is contained in:
parent
901f75aab8
commit
74c5ce114b
26
.travis.yml
26
.travis.yml
|
@ -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/
|
|
@ -36,7 +36,8 @@ msmtp_auto_from: 'off'
|
|||
msmtp_log: file
|
||||
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_root: emailer.tests@yandex.com
|
||||
msmtp_alias_cron: emailer.tests@yandex.com
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
---
|
||||
# sending test mail using 'mail' command to root and test recipient
|
||||
- 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
|
||||
when: msmtp_send_test_mail
|
||||
async: 30
|
||||
|
|
|
@ -3,6 +3,10 @@ dependency:
|
|||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
platforms:
|
||||
- name: centos8
|
||||
image: geerlingguy/docker-centos8-ansible:latest
|
||||
|
|
Loading…
Reference in a new issue