mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 04:20:18 +01:00
Remove circular symlink in tests dir
This commit is contained in:
parent
574993006d
commit
349d0e6828
6 changed files with 21 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.vagrant
|
.vagrant
|
||||||
|
tests/roles/ansible-sshd
|
||||||
|
|
19
Vagrantfile
vendored
19
Vagrantfile
vendored
|
@ -4,24 +4,29 @@
|
||||||
VAGRANTFILE_API_VERSION = "2"
|
VAGRANTFILE_API_VERSION = "2"
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
# config.vm.define "ubuntu" do |ubuntu|
|
config.vm.define "ubuntu" do |ubuntu|
|
||||||
# ubuntu.vm.box = "ubuntu/trusty64"
|
ubuntu.vm.box = "boxcutter/ubuntu1604"
|
||||||
# ubuntu.vm.provision "shell", inline: <<-SHELL
|
# ubuntu.vm.provision "shell", inline: <<-SHELL
|
||||||
# sudo add-apt-repository -y ppa:ansible/ansible
|
# sudo add-apt-repository -y ppa:ansible/ansible
|
||||||
# sudo apt-get update -qq
|
# sudo apt-get update -qq
|
||||||
# sudo apt-get -qq install ansible
|
# sudo apt-get -qq install ansible
|
||||||
# SHELL
|
# SHELL
|
||||||
# end
|
|
||||||
|
|
||||||
config.vm.define "centos6" do |centos|
|
|
||||||
centos.vm.box = "bento/centos-6.7"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# config.vm.define "centos7" do |centos|
|
||||||
|
# centos.vm.box = "boxcutter/centos72"
|
||||||
|
|
||||||
|
# centos.vm.provision "shell", inline: <<-SHELL
|
||||||
|
# sudo yum install -y libselinux-python
|
||||||
|
# SHELL
|
||||||
|
# end
|
||||||
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
sudo yum install -y libselinux-python
|
ln -s /vagrant /vagrant/tests/roles/ansible-sshd || true
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
config.vm.provision "ansible_local" do |ansible|
|
config.vm.provision "ansible_local" do |ansible|
|
||||||
|
# ansible.config_file = "tests/ansible.cfg"
|
||||||
ansible.playbook = "tests/test.yml"
|
ansible.playbook = "tests/test.yml"
|
||||||
ansible.install = true
|
ansible.install = true
|
||||||
end
|
end
|
||||||
|
|
2
tests/ansible.cfg
Normal file
2
tests/ansible.cfg
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[defaults]
|
||||||
|
roles_path = ../
|
0
tests/roles/.gitkeep
Normal file
0
tests/roles/.gitkeep
Normal file
|
@ -1 +0,0 @@
|
||||||
../../.
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ansible-sshd
|
- ansible-sshd
|
||||||
|
|
Loading…
Reference in a new issue