Compare commits

..

11 Commits

Author SHA1 Message Date
fe7499681e Merge branch 'main' into renovate/ghcr.io-paperless-ngx-paperless-ngx-2.x 2024-12-12 21:14:38 -05:00
1cdd8fe7ae Update ansible/buildHomelab.yaml
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 2m6s
2024-11-22 08:36:58 -05:00
7869338ae0 Added work computer to WG
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 2m5s
2024-11-22 07:36:42 -05:00
a64be57ac4 Corrected inventory location
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 2m4s
2024-11-21 06:50:01 -05:00
0b491fb85d Corrected inventory location
All checks were successful
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Successful in 1m3s
2024-11-21 06:45:36 -05:00
576b52d777 Removed .venv stuff, removed most requirements
All checks were successful
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Successful in 1m4s
2024-11-18 07:32:27 -05:00
f047cc233e Added .venv to workflow, added requirements back
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 1m8s
2024-11-18 07:17:42 -05:00
26a8079e2d Removed most requirements for testing workflow
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 1m3s
2024-11-18 07:14:39 -05:00
64a43d18ef Removed ansible-requirements
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 1m6s
2024-11-18 07:11:22 -05:00
b515e330a8 Merge branch 'automate-deployment-with-ansible-action'
Some checks failed
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Failing after 1m51s
2024-11-18 07:07:21 -05:00
7aaa0a6686 Added ansible-deploy workflow 2024-11-18 07:06:15 -05:00
4 changed files with 52 additions and 8 deletions

View 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

View File

@ -7,3 +7,8 @@ PublicKey = s3Ch/zcv5IeSpIbHBT5pdzpHWwV2qh4Z9W/0DSZg/CQ=
AllowedIPs = 0.0.0.0/0
Endpoint = vps.mycomputer.party:51820
PersistentKeepalive = 25
[Peer]
PublicKey = eEHA7CSOR5nha9w4SCB+tOXcuCxgkxIXtNU3xB7wZn4=
AllowedIPs = 10.11.20.5/32
Endpoint = vps.mycomputer.party:51820

View File

@ -36,6 +36,7 @@
ansible.builtin.shell: systemctl restart systemd-resolved
- name: Install restic
ignore_errors: true
ansible.builtin.apt:
update_cache: true
name:

View File

@ -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