Add Alpine linux
This commit is contained in:
parent
ea82369fd8
commit
ef909a2247
7
Vagrantfile
vendored
7
Vagrantfile
vendored
|
@ -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__)))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -16,6 +16,9 @@ galaxy_info:
|
|||
- name: ArchLinux
|
||||
versions:
|
||||
- any
|
||||
- name: Alpine
|
||||
versions:
|
||||
- any
|
||||
tags:
|
||||
- mail
|
||||
- system
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue