ansible-role-certbot/files/certbot-renew

14 lines
262 B
Text
Raw Permalink Normal View History

2018-07-07 17:24:56 +00:00
#!/usr/bin/python3
import configparser
import os
config = configparser.ConfigParser()
config.read('/etc/letsencrypt/renew.cfg')
for domain in os.environ['RENEWED_DOMAINS'].split(' '):
try:
os.system(config.get('default', domain))
except:
continue