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",
|
:cpu => "50",
|
||||||
:ram => "256"
|
: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__)))
|
role = File.basename(File.expand_path(File.dirname(__FILE__)))
|
||||||
|
|
|
@ -7,7 +7,7 @@ msmtp_accounts:
|
||||||
auth : "on"
|
auth : "on"
|
||||||
from : emailer-tests@yandex.com
|
from : emailer-tests@yandex.com
|
||||||
user : emailer-tests@yandex.com
|
user : emailer-tests@yandex.com
|
||||||
password : pKiMAH7yoeTgEMTNscpV
|
password : WHUXevzmwYGpwi+XTu3CeY
|
||||||
#Account 2
|
#Account 2
|
||||||
- account : mysmtp
|
- account : mysmtp
|
||||||
host : smtp.example
|
host : smtp.example
|
||||||
|
|
|
@ -16,6 +16,9 @@ galaxy_info:
|
||||||
- name: ArchLinux
|
- name: ArchLinux
|
||||||
versions:
|
versions:
|
||||||
- any
|
- any
|
||||||
|
- name: Alpine
|
||||||
|
versions:
|
||||||
|
- any
|
||||||
tags:
|
tags:
|
||||||
- mail
|
- mail
|
||||||
- system
|
- system
|
||||||
|
|
|
@ -43,6 +43,20 @@
|
||||||
- s-nail
|
- s-nail
|
||||||
when: ansible_os_family == "Archlinux"
|
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.
|
- name: Copy mstprc conf file.
|
||||||
template:
|
template:
|
||||||
src: msmtprc.j2
|
src: msmtprc.j2
|
||||||
|
|
Loading…
Reference in a new issue