Compare commits
1 Commits
50b36c8688
...
9aa5ea35cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aa5ea35cb |
@ -1,38 +0,0 @@
|
|||||||
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
|
|
||||||
@ -410,7 +410,7 @@ services:
|
|||||||
- "traefik.http.services.healthchecks-http.loadbalancer.server.port=8000"
|
- "traefik.http.services.healthchecks-http.loadbalancer.server.port=8000"
|
||||||
- "traefik.http.routers.healthchecks.middlewares=authchain@docker"
|
- "traefik.http.routers.healthchecks.middlewares=authchain@docker"
|
||||||
apache:
|
apache:
|
||||||
image: php:8.4-apache
|
image: php:8.3-apache
|
||||||
volumes:
|
volumes:
|
||||||
- ./apache:/var/www/html
|
- ./apache:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
@ -427,7 +427,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
apache2:
|
apache2:
|
||||||
image: php:8.4-apache
|
image: php:8.3-apache
|
||||||
volumes:
|
volumes:
|
||||||
- ./apache:/var/www/html
|
- ./apache:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -410,7 +410,7 @@ services:
|
|||||||
- "traefik.http.services.healthchecks-http.loadbalancer.server.port=8000"
|
- "traefik.http.services.healthchecks-http.loadbalancer.server.port=8000"
|
||||||
- "traefik.http.routers.healthchecks.middlewares=authchain@docker"
|
- "traefik.http.routers.healthchecks.middlewares=authchain@docker"
|
||||||
apache:
|
apache:
|
||||||
image: php:8.4-apache
|
image: php:8.3-apache
|
||||||
volumes:
|
volumes:
|
||||||
- ./apache:/var/www/html
|
- ./apache:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
@ -427,7 +427,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
apache2:
|
apache2:
|
||||||
image: php:8.4-apache
|
image: php:8.3-apache
|
||||||
volumes:
|
volumes:
|
||||||
- ./apache:/var/www/html
|
- ./apache:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
ansible==8.7.0
|
ansible==8.7.0
|
||||||
ansible-core==2.15.11
|
ansible-core==2.15.11
|
||||||
#cffi==1.15.1
|
cffi==1.15.1
|
||||||
#cryptography==39.0.0
|
cryptography==39.0.0
|
||||||
#Jinja2==3.1.2
|
Jinja2==3.1.2
|
||||||
#MarkupSafe==2.1.1
|
MarkupSafe==2.1.1
|
||||||
#packaging==23.0
|
packaging==23.0
|
||||||
#pycparser==2.21
|
pycparser==2.21
|
||||||
#PyYAML==6.0
|
PyYAML==6.0
|
||||||
#resolvelib==0.8.1
|
resolvelib==0.8.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user