Implement a self-contained Ansible role or script that, when run on a host, generates two PEM certificates (leaf and intermediate) with the exact subject prefixes:
Intermediate: Subject: C=UK, ST=Dummy, L=Intermediate, O=Certificate
and writes:
/etc/ssl/localcerts/bundled.crt containing exactly two CERTIFICATE blocks (leaf then intermediate)
/etc/ssl/localcerts/combined.pem containing leaf, intermediate, and a PKCS#8 unencrypted private key (BEGIN PRIVATE KEY)
The solution must be idempotent, use OpenSSL locally with no external network, and set appropriate permissions.