init
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-10-05 21:34:34 +02:00
commit 2136ddd16b
11 changed files with 289 additions and 0 deletions

21
tests/Vagrantfile vendored Normal file
View 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

8
tests/inventory Normal file
View File

@ -0,0 +1,8 @@
[debian]
localhost ansible_connection=local
[arch]
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
[centos]
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2

7
tests/test-playbook.yml Normal file
View File

@ -0,0 +1,7 @@
---
- name: test playbook
hosts: all
gather_facts: True
roles:
- ../../.

5
tests/test.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- verify