diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0440200..0000000 --- a/.travis.yml +++ /dev/null @@ -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/ diff --git a/defaults/main.yml b/defaults/main.yml index c845211..0afcac3 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/handlers/main.yml b/handlers/main.yml index d3df993..79d1935 100755 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 4472eab..3ae9175 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -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