fixed with loop and added vagrant test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1df141c48d
commit
93b101ac50
@ -23,6 +23,6 @@
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items: stop_service_list
|
||||
with_items: "{{ stop_service_list }}"
|
||||
tags: [ 'daemon' ]
|
||||
when: ci_run is not defined
|
||||
|
21
tests/Vagrantfile
vendored
Normal file
21
tests/Vagrantfile
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
boxes = [
|
||||
{ :name => "ubuntu-hello-world-box", :box => "ubuntu/xenial64" },
|
||||
{ :name => "debian-hello-world-box", :box => "debian/stretch64" },
|
||||
{ :name => "centos-hello-world-box", :box => "geerlingguy/centos8" }
|
||||
]
|
||||
boxes.each do |opts|
|
||||
config.vm.define opts[:name] do |config|
|
||||
config.vm.box = opts[:box]
|
||||
if opts[:name] == boxes.last[:name]
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "test-playbook.yml"
|
||||
ansible.limit = "all"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -4,4 +4,4 @@
|
||||
hosts: all
|
||||
gather_facts: True
|
||||
roles:
|
||||
- update-system
|
||||
- ../../.
|
||||
|
Loading…
Reference in New Issue
Block a user