1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-09-19 15:30:34 +00:00

Make separate playbook file for VM

This commit is contained in:
Kris Lamoureux 2021-04-27 15:06:15 -04:00
parent 8f86e58cb4
commit 18c36e44d5
Signed by: kris
GPG Key ID: A30022791E1719A4
3 changed files with 15 additions and 4 deletions

4
Vagrantfile vendored
View File

@ -4,7 +4,7 @@ Vagrant.configure(2) do |config|
config.vm.box_url = 'http://software.apidb.org/vagrant/centos-7-64-puppet.json' config.vm.box_url = 'http://software.apidb.org/vagrant/centos-7-64-puppet.json'
config.vm.box = 'ebrc/centos-7-64-puppet' config.vm.box = 'ebrc/centos-7-64-puppet'
config.vm.hostname = 'redmine.vm.apidb.org' config.vm.hostname = 'redmine.vm.apidb.org'
config.vm.network :private_network, type: 'dhcp' config.vm.network :private_network, type: 'dhcp'
@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
# end # end
config.vm.provision 'deploy', type: 'ansible' do |ansible| config.vm.provision 'deploy', type: 'ansible' do |ansible|
ansible.playbook = 'playbook.yml' ansible.playbook = 'vagrant-playbook.yml'
ansible.galaxy_role_file = 'requirements.yml' ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = 'roles' ansible.galaxy_roles_path = 'roles'
end end

View File

@ -2,8 +2,6 @@
- hosts: all - hosts: all
become: yes become: yes
gather_facts: yes gather_facts: yes
vars_files:
- config.yml
roles: roles:
- { role: rvm.ruby, tags: ruby, become: yes } - { role: rvm.ruby, tags: ruby, become: yes }

13
vagrant-playbook.yml Normal file
View File

@ -0,0 +1,13 @@
---
- hosts: all
become: yes
gather_facts: yes
vars_files:
- config.yml
roles:
- { role: rvm.ruby, tags: ruby, become: yes }
- { role: rvm.ruby.patch, tags: ruby, become: yes }
- { role: easyredmine, become: no }
tasks: