Fix the Vagrantfile for Github runners

This commit is contained in:
Kris Lamoureux 2023-08-30 19:45:42 -04:00
parent 9b5be29a1a
commit b81372c07a
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 6 additions and 6 deletions

8
Vagrantfile vendored
View File

@ -16,13 +16,9 @@ SSH_FORWARD = settings['SSH_FORWARD'] || false
# Default to shell environment variable: PLAYBOOK (priority #1) # Default to shell environment variable: PLAYBOOK (priority #1)
PLAYBOOK=ENV["PLAYBOOK"] PLAYBOOK=ENV["PLAYBOOK"]
if !PLAYBOOK if !PLAYBOOK || PLAYBOOK.empty?
# PLAYBOOK setting in .vagrant.yml (priority #2) # PLAYBOOK setting in .vagrant.yml (priority #2)
PLAYBOOK = settings['PLAYBOOK'] || false PLAYBOOK = settings['PLAYBOOK'] || 'default'
if !PLAYBOOK || PLAYBOOK.empty?
puts "[VAGRANTFILE ERROR]: Set PLAYBOOK setting in .vagrant.yml"
abort
end
end end
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|

4
dev/default.yml Normal file
View File

@ -0,0 +1,4 @@
- name: Install 'default' aka nothing
hosts: all
become: true
tasks: []