This commit is contained in:
Kris Lamoureux 2024-05-01 23:53:32 -04:00
parent 324fe0b191
commit f1975b4dc1
2 changed files with 12 additions and 8 deletions

View File

@ -8,7 +8,7 @@ on:
jobs:
homelab-ci:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v3
@ -21,19 +21,22 @@ jobs:
restore-keys: |
${{ runner.os }}-vagrant-
- name: Install VirtualBox
run: brew install --cask virtualbox
- name: Install Vagrant
run: brew install --cask vagrant
- name: Install Ansible
run: brew install ansible@7
run: brew install ansible
- name: Software Versions
run: |
printf "VirtualBox "
vboxmanage --version
printf "VirtualBox "; vboxmanage --version
vagrant --version
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
ansible --version
- name: Vagrant Up with Dockerbox Playbook
run: |
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
PLAYBOOK=dockerbox vagrant up
PLAYBOOK=dockerbox vagrant up --debug
vagrant ssh -c "docker ps"

3
Vagrantfile vendored
View File

@ -36,6 +36,7 @@ Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vbox|
vbox.cpus = VAGRANT_CPUS
vbox.memory = VAGRANT_MEM
vbox.gui = true
end
# Provision with Ansible
@ -43,6 +44,6 @@ Vagrant.configure("2") do |config|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0"
ansible.playbook = "dev/" + PLAYBOOK + ".yml"
ansible.raw_arguments = ["--diff"]
ansible.raw_arguments = ["--diff", "-vvv"]
end
end