mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-12-16 07:20:36 +00:00
Make separate playbook file for VM
This commit is contained in:
parent
8f86e58cb4
commit
18c36e44d5
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -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 = 'ebrc/centos-7-64-puppet'
|
||||
|
||||
|
||||
config.vm.hostname = 'redmine.vm.apidb.org'
|
||||
config.vm.network :private_network, type: 'dhcp'
|
||||
|
||||
@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
|
||||
# end
|
||||
|
||||
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_roles_path = 'roles'
|
||||
end
|
||||
|
@ -2,8 +2,6 @@
|
||||
- hosts: all
|
||||
become: yes
|
||||
gather_facts: yes
|
||||
vars_files:
|
||||
- config.yml
|
||||
|
||||
roles:
|
||||
- { role: rvm.ruby, tags: ruby, become: yes }
|
||||
|
13
vagrant-playbook.yml
Normal file
13
vagrant-playbook.yml
Normal 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:
|
Loading…
Reference in New Issue
Block a user