https://thomas-leister.de/mailserver-debian-stretch/
vault.yml password: zelenina
ansible-playbook -i ./hosts site.yml --ask-vault-pass
The results of the ansible playbook can be tested with Molecule
Build the mail server
ANSIBLE_VAULT_PASSWORD_FILE=<YOUR_VAULT_PASS_FILE_PATH> molecule converge
Verify the installation
ANSIBLE_VAULT_PASSWORD_FILE=<YOUR_VAULT_PASS_FILE_PATH> molecule verify
Build, test and destroy in one command
ANSIBLE_VAULT_PASSWORD_FILE=<YOUR_VAULT_PASS_FILE_PATH> molecule test
Send a email on the ready system with bats
mail_user=USER mail_pass=PASS mail_host=HOST:587 bats smtp.bats