mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
Make separate playbook file for VM
This commit is contained in:
parent
8f86e58cb4
commit
18c36e44d5
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -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
|
||||||
|
@ -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
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