Recommended config for certbot and osc/ood-ansible?

I’m trying to upgrade our ondemand deployments from possibly self-signed certs to lets encrypt.

I saw in this discussion that using certbot’s apache plugin instead of webroot was recommended, fine, makes sense. But when using OSC/ood-ansible, do I still need to provide the paths to the certbot certs?

Bascially, I’m trying to work out how to avoid apache config clashes between ansible and certbot. Plus a bit confused about the fact that presumably apache is initially going to start (with no certs?) then certbot will generate certs and insert apache config (and presumably reload config).

Currently I have

ssl:
- “SSLCertificateFile {{ openondemand_ssl_cert }}”
- “SSLCertificateKeyFile {{ openondemand_ssl_cert_key }}”
# following based on https://grok.lsu.edu/article.aspx?articleid=17596
- SSLProtocol all -TLSv1.1 -TLSv1 -SSLv2 -SSLv3
- SSLCipherSuite ALL:+HIGH:!ADH:!EXP:!SSLv2:!SSLv3:!MEDIUM:!LOW:!NULL:!aNULL
- SSLHonorCipherOrder On
- SSLCompression off
- SSLSessionTickets Off

should I should just remove the Cert.. lines? Or is there something more complicated needed here?

I’m not really sure which is the best approach. If I recall correctly, the last time I did this with a cloud VM I didn’t use the apache plugin and generated them through I want to say a DNS challenge? But that was years ago.

Not really sure what the best practice is here, though someone from the community may join let us know.