Enable archlinux, incl. tests

This commit is contained in:
Unknown 2018-05-08 01:15:32 +08:00
parent fe82c727c8
commit baf727f495
3 changed files with 16 additions and 2 deletions

11
Vagrantfile vendored
View File

@ -42,7 +42,14 @@ boxes = [
:box => "bento/debian-9", :box => "bento/debian-9",
:ip => '10.0.0.16', :ip => '10.0.0.16',
:cpu => "50", :cpu => "50",
:ram => "512" :ram => "256"
},
{
:name => "archlinux",
:box => "archlinux/archlinux",
:ip => '10.0.0.17',
:cpu => "50",
:ram => "256"
}, },
] ]
@ -50,6 +57,8 @@ role = File.basename(File.expand_path(File.dirname(__FILE__)))
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
boxes.each do |box| boxes.each do |box|
# If archlinux gives an error with Linux 4.16 Virtualbox guest driver, disable synced folder
#config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.define box[:name] do |vms| config.vm.define box[:name] do |vms|
vms.vm.box = box[:box] vms.vm.box = box[:box]
vms.vm.hostname = "#{role}-#{box[:name]}" vms.vm.hostname = "#{role}-#{box[:name]}"

View File

@ -13,6 +13,9 @@ galaxy_info:
- trusty - trusty
- xenial - xenial
# - bionic # - bionic
- name: ArchLinux
versions:
- any
tags: tags:
- mail - mail
- system - system

View File

@ -20,7 +20,9 @@
- sendmail* - sendmail*
tags: tags:
- mail - mail
when: msmtp_remove_mtas when:
- msmtp_remove_mtas
- ansible_os_family == "Debian"
- name: Install msmtp and mailx on Debian. - name: Install msmtp and mailx on Debian.
apt: apt: