Suivez-vous les instructions sur Set up Let’s Encrypt with multiple domains / redirects ?
Si vous insérez www.mysite.com dans le modèle dans le OP, cela génère ceci :
after_ssl:
# tell letsencrypt what additional certs to get
- replace:
filename: "/etc/runit/1.d/letsencrypt"
from: /--keylength/
to: "-d www.mysite.com --keylength"
- replace:
filename: "/etc/runit/1.d/letsencrypt"
from: /--fullchainpath/
to: "-d www.mysite.com --fullchainpath"
global: true
Donc, vous vous y prenez mal.