1
0
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:
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

2
Vagrantfile vendored
View File

@ -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: