Extracted the basic role from the madonsible playbook

This commit is contained in:
Emmanouil Kampitakis
2018-06-17 08:48:53 +00:00
commit eb16cabd34
18 changed files with 207 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Generated by Vagrant
default ansible_host=127.0.0.1 ansible_port=2222 ansible_user='vagrant' ansible_ssh_private_key_file='/home/madonius/.vagrant.d/insecure_private_key'

10
tests/Vagrantfile vendored Normal file
View File

@@ -0,0 +1,10 @@
Vagrant.configure(2) do |config|
config.vm.hostname = "vagrant.example.com"
config.vm.box = "debian/stretch64"
config.ssh.insert_key = false
config.vm.provision "ansible" do |ansible|
ansible.verbose ="vv"
ansible.playbook = "test.yml"
end
end

2
tests/ansible.cfg Normal file
View File

@@ -0,0 +1,2 @@
[defaults]
roles_path=../../

1
tests/inventory Normal file
View File

@@ -0,0 +1 @@
10.0.0.100

13
tests/test.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- hosts: all
roles:
- role: basic
basic_users:
- name: madonius
comment: 'madonius'
uid: 1337
shell: /bin/zsh
groups: sudo
state: present
ssh_auth_key: >
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3HexVmU/vTVFUFk2AAB1h3mOOrfFPt1Gq2cBldaYnn madonius@iapeptus