systemd-resolved was only disabled for bind/unbound/powerdns_recursor, so a pure PowerDNS-server host kept it running on 127.0.0.53:53. Include powerdns_server in that condition. Also flush pending service handlers (restart_named/unbound/pdns) before the step-ca import so the local resolver is actually up when the root CA URL is fetched.