Rocky 10 - 2026_02_09_105615_rspamd-autolearn migration fails

This is specifically for Rocky 10
ApisCP: v3.2.0 rev 025d25b1

Issue

When running upcp fails with the following error:

TASK [apnscp/initialize-filesystem-template : Install zlib-ng-devel into FST/ssh] ***
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/local/apnscp/bin/php-bins/php", "/usr/local/apnscp/bin/scripts/yum-post.php", "install", "zlib-ng-devel", "ssh"], "delta": "0:00:00.477730", "end": "2026-03-10 09:40:27.527256", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2026-03-10 09:40:27.049526", "stderr": "ERROR  : CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(): failed to enumerate package `zlib-ng-devel'\n         0. Error_Reporter::add_error(\"failed to enumerate package `%%s'\", [\"zlib-ng-devel\"])\n            [/usr/local/apnscp/lib/log_wrapper.php:72]\n         1. error(\"failed to enumerate package `%%s'\", \"zlib-ng-devel\")\n            [/usr/local/apnscp/lib/CLI/Yum/Synchronizer/Utils.php:175]\n         2. CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(\"zlib-ng-devel\")\n            [/usr/local/apnscp/lib/CLI/Yum/Synchronizer/Install.php:89]\n         3. CLI\\Yum\\Synchronizer\\Install->run()\n            [/usr/local/apnscp/bin/scripts/yum-post.php:21]\nERROR: CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(): failed to enumerate package `zlib-ng-devel'", "stderr_lines": ["ERROR  : CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(): failed to enumerate package `zlib-ng-devel'", "         0. Error_Reporter::add_error(\"failed to enumerate package `%%s'\", [\"zlib-ng-devel\"])", "            [/usr/local/apnscp/lib/log_wrapper.php:72]", "         1. error(\"failed to enumerate package `%%s'\", \"zlib-ng-devel\")", "            [/usr/local/apnscp/lib/CLI/Yum/Synchronizer/Utils.php:175]", "         2. CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(\"zlib-ng-devel\")", "            [/usr/local/apnscp/lib/CLI/Yum/Synchronizer/Install.php:89]", "         3. CLI\\Yum\\Synchronizer\\Install->run()", "            [/usr/local/apnscp/bin/scripts/yum-post.php:21]", "ERROR: CLI\\Yum\\Synchronizer\\Utils::getFilesFromRPM(): failed to enumerate package `zlib-ng-devel'"], "stdout": "", "stdout_lines": []}

I found the issue to be in the file:
/usr/local/apnscp/resources/playbooks/migrations/2026_02_09_105615_rspamd-autolearn.yml
Line: 25

Change: package: "zlib-ng-devel"
TO: package: "zlib-ng-compat-devel"

This works because the Task is just for EL10 and the package name changed with EL10 to zlib-ng-compat-*

Re-running upcp succeeded without issue.