Commit be604b8
committed
linux-mirror: add formatted output for mirror-status display
The mirror-status tasks were showing only the ActiveState value in a loop,
which provided minimal information and did not work properly with the
community.general.diy callback plugin. The diy callback displays "All items
completed" for Ansible loops instead of showing the actual status data,
making the output useless for monitoring mirror status.
Replaced the simple debug output with formatted multiline messages that
display comprehensive status information for each mirror including the
mirror name, service or timer unit name, active state, and enabled status.
Changed both tasks from Ansible loops to Jinja2 template loops within the
debug message so each task runs once and generates a single formatted
message containing all mirror statuses.
Added ansible_callback_diy_runner_on_ok_msg variable to both display tasks
to enable proper integration with the diy callback plugin. This provides
clean formatted output consistent with other kdevops status commands,
making it easy to quickly scan the status of all git mirror repositories.
Generated-by: Claude AI
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Daniel Gomez <[email protected]>1 parent 0f7fe7f commit be604b8
1 file changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| 229 | + | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| |||
238 | 245 | | |
239 | 246 | | |
240 | 247 | | |
241 | | - | |
| 248 | + | |
242 | 249 | | |
243 | | - | |
244 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
245 | 257 | | |
246 | 258 | | |
247 | 259 | | |
| 260 | + | |
| 261 | + | |
248 | 262 | | |
249 | 263 | | |
250 | 264 | | |
| |||
0 commit comments