Compare commits

..

24 Commits

Author SHA1 Message Date
d435f761a1 add cron trigger
All checks were successful
Run ansible playbooks / update-proxmox (push) Successful in 36s
Run ansible playbooks / prune-images (push) Successful in 40s
Run ansible playbooks / update-packages (push) Successful in 35s
2025-11-27 13:33:51 +00:00
a6d58bfcc4 change port for ovh 2025-11-27 17:11:28 +05:30
2bc143a162 remove nginx 2025-11-27 16:47:33 +05:30
ff872d45cd add ovh and portfolio 2025-11-27 16:45:13 +05:30
24ff0ea9e3 Update .gitea/workflows/playbooks.yml 2025-10-31 06:40:38 +05:30
86630fa0c2 Update .gitea/workflows/playbooks.yml 2025-10-31 06:38:48 +05:30
4d6526d3c3 Update .gitea/workflows/playbooks.yml 2025-10-31 06:30:30 +05:30
76b8a48bb7 Update .gitea/workflows/playbooks.yml 2025-10-31 06:30:06 +05:30
90f7f187cd Update .gitea/workflows/playbooks.yml 2025-10-31 05:51:58 +05:30
a8f9c1b19d add kube-lb hosts 2025-10-25 05:36:37 +00:00
98971dfd01 delete contabo, add nginx and kube-lb hosts 2025-10-25 05:36:18 +00:00
3a41335c34 add contabo 2025-10-18 20:08:58 +00:00
99d3441e9d change kube hosts 2025-10-15 14:42:47 +00:00
c6f97cac9d revert a1a437949c
All checks were successful
Run ansible playbooks / update-proxmox (push) Successful in 47s
Run ansible playbooks / prune-images (push) Successful in 1m37s
Run ansible playbooks / update-packages (push) Successful in 3m0s
revert add ovh
2025-10-15 01:20:24 +05:30
a1a437949c add ovh 2025-10-14 16:32:17 +00:00
07dc3f96ff add hetzner 2025-10-10 02:16:47 +00:00
b46c97e981 remove trigger for testing
All checks were successful
continuous-integration/drone Build is passing
2025-10-02 18:20:40 +05:30
dbee06f47b remove cron and add custom
All checks were successful
continuous-integration/drone Build is passing
2025-10-02 18:18:32 +05:30
1aa52af868 remove custom trigger 2025-10-02 18:17:14 +05:30
15b4c3278c add contabo 2025-09-28 07:08:57 +00:00
d9fdd67ddc add hetzner
All checks were successful
continuous-integration/drone Build is passing
2025-09-21 19:57:01 +00:00
062e036992 add contabo and delete hetzner 2025-09-17 03:01:59 +00:00
06f7400e61 this is better 2025-09-15 14:58:36 +00:00
05950028a8 add interpreter_python var 2025-09-15 14:58:27 +00:00
6 changed files with 30 additions and 23 deletions

View File

@@ -5,12 +5,6 @@ name: run-playbooks
clone:
disable: true
trigger:
event:
include:
- custom
- cron
steps:
- name: clone-repo
image: alpine/git:latest

View File

@@ -2,7 +2,7 @@ name: Run ansible playbooks
on:
schedule:
- cron: '@daily'
- cron: "@daily"
workflow_dispatch:
jobs:

View File

@@ -2,3 +2,4 @@
inventory = inventory.yml
private_key_file = ~/.ssh/default-key
host_key_checking = False
interpreter_python = auto_silent

View File

@@ -1,6 +1,10 @@
---
ungrouped:
hosts:
ovh:
ansible_host: 139.99.47.225
ansible_user: debian
ansible_port: 222
omv:
ansible_host: 192.168.1.4
ansible_user: root
@@ -13,26 +17,35 @@ ungrouped:
ansible:
ansible_host: 192.168.1.29
ansible_user: akshun
hetzner:
ansible_host: 5.223.78.179
portfolio:
ansible_host: 192.168.1.9
ansible_user: akshun
kube:
hosts:
kube-01:
ansible_host: 192.168.1.11
ansible_host: 192.168.1.101
ansible_user: akshun
kube-02:
ansible_host: 192.168.1.12
ansible_host: 192.168.1.102
ansible_user: akshun
kube-03:
ansible_host: 192.168.1.13
ansible_host: 192.168.1.103
ansible_user: akshun
kube-04:
ansible_host: 192.168.1.14
ansible_host: 192.168.1.104
ansible_user: akshun
kube-05:
ansible_host: 192.168.1.15
ansible_host: 192.168.1.105
ansible_user: akshun
kube-lb:
hosts:
kube-lb-01:
ansible_host: 192.168.1.51
ansible_user: akshun
kube-lb-02:
ansible_host: 192.168.1.52
ansible_user: akshun
proxmox:

View File

@@ -14,13 +14,12 @@
prompt: "State of service"
private: no
tasks:
- name: Check if service exists
shell: systemctl list-units --type=service --all | grep -o "{{ service }}"
register: status
ignore_errors: true
- name: Change state of service
systemd:
- name: Gather service facts
ansible.builtin.service_facts:
- name: Manage service if present
ansible.builtin.systemd:
name: "{{ service }}"
enabled: "{{ enable }}"
enabled: "{{ enable | bool }}"
state: "{{ state }}"
when: status.stdout == "{{ service }}"
when: service in ansible_facts.services

View File

@@ -1,5 +1,5 @@
---
- hosts: kube,ungrouped
- hosts: kube,ungrouped,kube-lb
become: true
vars_files:
- ../secret