From 41f6c059546ca38e0242a289d5d21e9299fe5aad Mon Sep 17 00:00:00 2001 From: James Antill Date: Tue, 24 Mar 2026 15:27:46 -0400 Subject: [PATCH] vhost_update_reboot: Add comments for mainers. Signed-off-by: James Antill --- playbooks/vhost_reboot.yml | 3 ++- playbooks/vhost_update.yml | 3 ++- playbooks/vhost_update_reboot.yml | 13 +++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index b0c6efd439..54f552163a 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -1,7 +1,8 @@ # # This playbook lets you safely reboot a virthost and all it's guests. # -# requires --extra-vars="target=somevhost fqdn" +# You can use: --extra-vars="target=blah.fp.o" to skip the prompt. +# # Might add nodns=true or nonagios=true to the extra vars # General overview: diff --git a/playbooks/vhost_update.yml b/playbooks/vhost_update.yml index 813ad98e79..dbff625423 100644 --- a/playbooks/vhost_update.yml +++ b/playbooks/vhost_update.yml @@ -1,6 +1,7 @@ # This playboook updates a virthost and all it's guests. # -# requires --extra-vars="target=somevhostname yumcommand=update" +# You can use: --extra-vars="target=blah.fp.o" to skip the prompt. +# # Might add nodns=true or nonagios=true at extra-vars # diff --git a/playbooks/vhost_update_reboot.yml b/playbooks/vhost_update_reboot.yml index 644a701c3e..2542438264 100644 --- a/playbooks/vhost_update_reboot.yml +++ b/playbooks/vhost_update_reboot.yml @@ -1,8 +1,17 @@ --- +# You can use: --extra-vars="target=blah.fp.o" to skip the prompts. +# +# You _might_ decide that --limit looks cleaner and you use that a lot already, +# so you can "tweak" the playbooks to use it instead. You would be wrong. +# Then you might decide to ask AI how to do it, and it'll give you an answer +# but you'll still be wrong. +# # Note that someone probably wants to run: -# ansible -m shell -a 'dnf --refresh -y update; (rkhunter --propupd || true)' 'all:!copr*:!openqa*:!ocp*:!worker*' -# ...during an outage. Note that doing more than one vmhost at once isn't +# ansible/scripts/dnf-update-y.sh +# ...before an outage. +# NOTE: that rebooting more than one vmhost at once isn't # easily safe, because some vmhost will want another to be up while they reboot. +# # Also: # ansible ... 'staging:!copr*:!openqa*:!ocp*:!worker*' # could be used for staging, but it's not that big.