Extracted the basic role from the madonsible playbook
This commit is contained in:
@@ -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
10
tests/Vagrantfile
vendored
Normal 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
2
tests/ansible.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
roles_path=../../
|
||||
1
tests/inventory
Normal file
1
tests/inventory
Normal file
@@ -0,0 +1 @@
|
||||
10.0.0.100
|
||||
13
tests/test.yml
Normal file
13
tests/test.yml
Normal 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
|
||||
Reference in New Issue
Block a user