Skip to content

Commit

Permalink
i hate git
Browse files Browse the repository at this point in the history
  • Loading branch information
ahembree committed Dec 13, 2023
1 parent 59b9965 commit a751d68
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/run-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: GitHub Actions Testing
run-name: Test OS Deployments
name: HMS-Docker Install Tests
run-name: Test OS Installs
on:
push:
workflow_dispatch:
Expand All @@ -8,7 +8,7 @@ permissions:
contents: read

jobs:
Ubuntu22_Basic:
Ubuntu_22:
runs-on: ubuntu-22.04
steps:
- name: Check out repo code
Expand All @@ -17,25 +17,19 @@ jobs:
run: |
sudo apt update
sudo apt install ansible make python3-pip
- name: Run playbook
- name: Ensure base playbook requirements
run: |
mkdir -p ./vars/custom
cp vars/default/*.yml ./vars/custom
mv ./vars/custom/main.yml ./vars/custom/main_custom.yml
sudo ansible-playbook -i inventory --connection local hms-docker.yml --diff --extra-vars "hms_docker_compose_container_state=absent hms_docker_container_map.transmission.enabled=no hms_docker_container_map.plex.enabled=no is_github_runner=yes"
Ubuntu22_Advanced:
runs-on: ubuntu-22.04
steps:
- name: Check out repo code
uses: actions/checkout@v4
- name: Install ansible
run: |
sudo apt update
sudo apt install ansible make python3-pip
sudo make install-reqs
- name: Run playbook
run: |
mkdir -p ./vars/custom
cp roles/hmsdocker/defaults/main/*.yml ./vars/custom
mv ./vars/custom/main.yml ./vars/custom/main_custom.yml
sudo ansible-playbook -i inventory --connection local hms-docker.yml --diff --extra-vars "hms_docker_compose_container_state=absent hms_docker_container_map.transmission.enabled=no hms_docker_container_map.plex.enabled=no is_github_runner=yes"
run: >-
sudo ansible-playbook
-i inventory
--connection local
hms-docker.yml
--diff
--extra-vars "
is_github_runner=yes
"

0 comments on commit a751d68

Please sign in to comment.