Add lego certificate service to ansible

This commit is contained in:
Tobias Reisinger 2023-12-20 16:00:03 +01:00
parent 5246a6b101
commit 068a8e2cd7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
13 changed files with 212 additions and 0 deletions
filter_plugins

View file

@ -0,0 +1,18 @@
class FilterModule(object):
def filters(self):
return {
'acmedns_to_lego': self.acmedns_to_lego,
}
def acmedns_to_lego(self, acmedns_registered):
result = {}
for (key, value) in acmedns_registered.items():
result[key] = {
"fulldomain": value["subd"] + "." + value["host"],
"subdomain": value["subd"],
"username": value["user"],
"password": value["pass"],
"server_url": "https://" + value["host"]
}
return result