Compare commits
9 Commits
cb35dcf2a0
...
54866810c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54866810c5 | ||
| a64be57ac4 | |||
| 0b491fb85d | |||
| 576b52d777 | |||
| f047cc233e | |||
| 26a8079e2d | |||
| 64a43d18ef | |||
| b515e330a8 | |||
| 7aaa0a6686 |
38
.gitea/workflows/ansible-deploy.yaml
Normal file
38
.gitea/workflows/ansible-deploy.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
name: Ansible Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Homelab-Deploy:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
playbook:
|
||||
- ansible/buildHomelab.yaml
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# install ansbile
|
||||
- name: Install Ansible
|
||||
run: |
|
||||
apt update -y
|
||||
apt install python3-pip -y
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
- name: Run playbook
|
||||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
# Required, playbook filepath
|
||||
playbook: ${{ matrix.playbook }}
|
||||
# Optional, directory where playbooks live
|
||||
directory: ./
|
||||
# Optional, SSH private key
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
vault_password: ${{secrets.VAULT_PASSWORD}}
|
||||
# Optional, galaxy requirements filepath
|
||||
#requirements: requirements.yaml
|
||||
options: |
|
||||
--inventory ansible/inventory/hosts.yaml
|
||||
@ -218,7 +218,7 @@ services:
|
||||
timeout: 3s
|
||||
authentik-server:
|
||||
container_name: authentik-server
|
||||
image: ghcr.io/goauthentik/server:2024.8.2
|
||||
image: ghcr.io/goauthentik/server:2024.10.4
|
||||
restart: unless-stopped
|
||||
command: server
|
||||
environment:
|
||||
@ -252,7 +252,7 @@ services:
|
||||
- "traefik.http.routers.authentik.middlewares=crowdsec@docker"
|
||||
authentik-worker:
|
||||
container_name: authentik-worker
|
||||
image: ghcr.io/goauthentik/server:2024.8.2
|
||||
image: ghcr.io/goauthentik/server:2024.10.4
|
||||
restart: unless-stopped
|
||||
command: worker
|
||||
environment:
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
ansible==8.7.0
|
||||
ansible-core==2.15.11
|
||||
cffi==1.15.1
|
||||
cryptography==39.0.0
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.1
|
||||
packaging==23.0
|
||||
pycparser==2.21
|
||||
PyYAML==6.0
|
||||
resolvelib==0.8.1
|
||||
#cffi==1.15.1
|
||||
#cryptography==39.0.0
|
||||
#Jinja2==3.1.2
|
||||
#MarkupSafe==2.1.1
|
||||
#packaging==23.0
|
||||
#pycparser==2.21
|
||||
#PyYAML==6.0
|
||||
#resolvelib==0.8.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user