Add Alpine linux

This commit is contained in:
Unknown 2018-05-26 22:12:37 +08:00
parent ea82369fd8
commit ef909a2247
4 changed files with 25 additions and 1 deletions

7
Vagrantfile vendored
View file

@ -51,6 +51,13 @@ boxes = [
:cpu => "50",
:ram => "256"
},
{
:name => "alpine",
:box => "chriswayg/alpine-3.7-x86_64",
:ip => '10.0.0.18',
:cpu => "50",
:ram => "256"
},
]
role = File.basename(File.expand_path(File.dirname(__FILE__)))

View file

@ -7,7 +7,7 @@ msmtp_accounts:
auth : "on"
from : emailer-tests@yandex.com
user : emailer-tests@yandex.com
password : pKiMAH7yoeTgEMTNscpV
password : WHUXevzmwYGpwi+XTu3CeY
#Account 2
- account : mysmtp
host : smtp.example

View file

@ -16,6 +16,9 @@ galaxy_info:
- name: ArchLinux
versions:
- any
- name: Alpine
versions:
- any
tags:
- mail
- system

View file

@ -43,6 +43,20 @@
- s-nail
when: ansible_os_family == "Archlinux"
- name: Install msmtp and mailx on Alpine.
apk:
name: msmtp, mailx
state: present
update_cache: yes
when: ansible_os_family == "Alpine"
- name: Overwrite busybox sendmail link to point to mSMTP.
file:
src: /usr/bin/msmtp
dest: /usr/sbin/sendmail
state: link
when: ansible_os_family == "Alpine"
- name: Copy mstprc conf file.
template:
src: msmtprc.j2