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

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
homelab-ci: homelab-ci:
runs-on: macos-latest runs-on: macos-13
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -21,19 +21,22 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-vagrant- ${{ runner.os }}-vagrant-
- name: Install VirtualBox
run: brew install --cask virtualbox
- name: Install Vagrant
run: brew install --cask vagrant
- name: Install Ansible - name: Install Ansible
run: brew install ansible@7 run: brew install ansible
- name: Software Versions - name: Software Versions
run: | run: |
printf "VirtualBox " printf "VirtualBox "; vboxmanage --version
vboxmanage --version
vagrant --version vagrant --version
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
ansible --version ansible --version
- name: Vagrant Up with Dockerbox Playbook - name: Vagrant Up with Dockerbox Playbook
run: | run: |
export PATH="/usr/local/opt/ansible@7/bin:$PATH" PLAYBOOK=dockerbox vagrant up --debug
PLAYBOOK=dockerbox vagrant up
vagrant ssh -c "docker ps" 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| config.vm.provider :virtualbox do |vbox|
vbox.cpus = VAGRANT_CPUS vbox.cpus = VAGRANT_CPUS
vbox.memory = VAGRANT_MEM vbox.memory = VAGRANT_MEM
vbox.gui = true
end end
# Provision with Ansible # Provision with Ansible
@ -43,6 +44,6 @@ Vagrant.configure("2") do |config|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles" ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0" ansible.compatibility_mode = "2.0"
ansible.playbook = "dev/" + PLAYBOOK + ".yml" ansible.playbook = "dev/" + PLAYBOOK + ".yml"
ansible.raw_arguments = ["--diff"] ansible.raw_arguments = ["--diff", "-vvv"]
end end
end end