Skip to content

Commit d9131c9

Browse files
committed
vagrant: install JDK from Ansible Galaxy.
Fix #269
1 parent f880ae5 commit d9131c9

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

vagrant/Vagrantfile

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Vagrant.configure(2) do |config|
5353
# https://www.vagrantup.com/docs/provisioning/ansible_common.html
5454
config.vm.provision "ansible" do |ansible|
5555
ansible.playbook = "provisioning/vagrant.yml"
56+
ansible.galaxy_role_file = "requirements.yml"
5657
end
5758

5859
end

vagrant/provisioning/vagrant.yml

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
- name: Bootstrapping server
1010
include: bootstrap.yml
1111

12+
roles:
13+
- role: php-coder.oraclejdk
14+
become: yes
15+
become_method: sudo
16+
1217
tasks:
1318
- name: show greeting message
1419
debug:

vagrant/requirements.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- src: php-coder.oraclejdk
2+
version: '1.3'

0 commit comments

Comments
 (0)