Report updated vs already up-to-date hosts in update_system.yml
Check each host for pending packages before upgrading, then print a per-host status (updated with the package list, up to date, or failed) and one consolidated summary play with totals. Failed upgrades are caught per host so they are reported instead of dropping out of the run, and a final fail task keeps the run non-zero. The read-only cache refresh and pending checks run with check_mode: false, so --check works as a dry run. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ address, the first Ubuntu VM, and the service lists for `webserver`, `bot` and
|
||||
|----------|-------|----------------------|
|
||||
| `ping.yml` | all | connectivity check |
|
||||
| `health_check.yml` | all | disk and RAM report; Telegram alert for filesystems above `disk_warn_pct` (default 80) and offline hosts |
|
||||
| `update_system.yml` | ubuntu, rocky | apt dist-upgrade / dnf update |
|
||||
| `update_system.yml` | ubuntu, rocky | apt dist-upgrade / dnf update; reports per host whether it was updated (with the package list) or already up to date, plus a final summary. Supports `--check` as a dry run |
|
||||
| `bootstrap_lxc.yml` | ubuntu, rocky | base packages (EPEL and CRB enabled on Rocky), Ansible root key, sshd basics |
|
||||
| `add_root_key.yml` | all | add a personal public key to root |
|
||||
| `time-region.yml` | ubuntu, rocky | timezone, NTP on VMs, NTP disabled in LXC. `timezone_region`, `ntp_server` |
|
||||
|
||||
Reference in New Issue
Block a user