Commit Graph

26 Commits

Author SHA1 Message Date
Harwinder Sekhon 5aaa7020ac Fix playbook bugs from review, add Telegram alerts to health and service checks
Review fixes:
- Availability plays: "ping_result is succeeded" is true for unreachable
  hosts, so offline hosts were added to reachable_hosts and failed the
  next play. Test reachability explicitly (7 playbooks).
- bootstrap_lxc: vim-enhanced and mtr-tiny package names, enable CRB next
  to EPEL, add the root key without replacing authorized_keys, validate
  sshd_config edits and restart sshd only on change.
- backup_docker: the command module does not expand $(...); fix rsync
  filter order and add --exclude=*; restart only the containers that were
  stopped, even when rsync fails; read the storage address from the
  inventory; keep semaphore and semaphore-db running.
- new_lxc: community.general.proxmox no longer exists, use
  community.proxmox; node is mini-pc; valid hostname; password or token
  auth; let the module pick the VMID; longer timeout.
- proxmox-backup: surface the vzdump exit code, let vzdump prune with
  keep-last, drop the rename/prune steps that globbed *.zstd.
- time-region: chrony regex no longer comments out its own server line;
  /etc/localtime as a symlink; reuse facts across plays.
- update_pihole_blocklists: FQCN, become: true, changed_when.
- ansible.cfg gathering = smart; update_system only pings ubuntu/rocky.

Telegram alerts:
- health_check: filesystems above disk_warn_pct (default 80), excluding
  efivarfs, and offline hosts.
- service_check: services not running.
- One message per run from localhost, credentials from Semaphore
  (TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID), no_log on the send task,
  prints the alert text when Telegram is not configured.

Claude-Session: https://claude.ai/code/session_01XEizHawueRXUcxQELRZ8kq
2026-09-06 23:06:18 -04:00
harry 0b7e136b24 Update inventories/all.yml 2026-09-07 02:13:22 +00:00
harry b994343825 Update inventories/all.yml 2026-09-07 02:00:43 +00:00
harry 9b57eb1815 Update inventories/all.yml 2026-09-07 01:57:38 +00:00
Harwinder Sekhon 686080a493 Add repo foundation: proxmox/lxc/vms groups, ansible.cfg, collections, lint configs
- inventory: add proxmox host, lxc and vms groups, critical_services per host
- retarget bootstrap and time-region to ubuntu:rocky so the Proxmox host is untouched
- add ansible.cfg, collections/requirements.yml, .gitignore, .yamllint, .ansible-lint
- remove stale root new_lxc.yml duplicate and the Nextcloud upgrade playbook

Claude-Session: https://claude.ai/code/session_01JEczyvRjfakkiDNkbZA7PR
2026-09-06 20:30:10 -04:00
harry 3e232a30df Update inventories/all.yml 2026-07-04 16:37:28 +00:00
harry 231ae03407 Update inventories/all.yml 2026-06-04 19:25:35 +00:00
harry fa959afa96 Update inventories/all.yml 2026-06-04 19:24:08 +00:00
harwinder cf0e62d80c Refactor inventory into OS groups and update playbooks accordingly
Group hosts by OS (ubuntu/rocky) in inventory, refactor playbooks to
use group-targeted plays instead of ansible_os_family conditionals,
add bot host, and add Docker volume backup playbook via rsync to storage.
2026-05-16 17:31:29 -04:00
harry 727231821c Update inventories/all.yml 2026-05-01 01:13:19 +00:00
harry a351578032 Update inventories/all.yml 2026-05-01 01:11:22 +00:00
harry 80851179a8 Update inventories/all.yml 2026-04-14 16:44:25 +00:00
harry a31859c810 Update inventories/all.yml 2026-04-10 15:26:27 +00:00
harry c200a9d9f0 Update inventories/all.yml 2026-04-10 00:53:33 +00:00
harry d103c19d2e Update inventories/all.yml 2026-04-10 00:49:02 +00:00
harry 6b568299da Update inventories/all.yml 2026-04-02 20:51:00 +00:00
harry 42474da054 Update inventories/all.yml 2026-03-14 07:29:31 +00:00
harry 996359df1e Update inventories/all.yml 2026-02-28 10:09:24 +00:00
harry 030e6b7be4 Update inventories/all.yml 2026-01-20 07:04:06 +00:00
harry a30c19dc9f Update inventories/all.yml 2025-12-13 12:39:02 +00:00
harry 20083f4577 Update inventories/all.yml 2025-11-25 14:38:41 +00:00
harry bd8dbbf053 Update inventories/all.yml 2025-11-15 06:47:46 +00:00
harry 12a182279d Update inventories/all.yml 2025-11-15 06:46:44 +00:00
harry 6fdc20f6e9 Update inventories/all.yml 2025-11-13 14:08:44 +00:00
harry c0af275df0 Update inventories/all.yml 2025-11-13 04:46:16 +00:00
harry 5d7ffe42e9 Upload files to "inventories" 2025-11-13 04:42:51 +00:00