diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-12-22 13:01:30 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-12-22 13:01:30 +0100 |
commit | 18e0446c9c545f396d7737b406e6e207748e7926 (patch) | |
tree | f3f07876c819a4fb9845c6a098adfa9553ed7819 /roles/acmetool/cert/filter_plugins | |
parent | add prometheus snmp exporter (diff) |
move acmetool to new x509 subdir
Diffstat (limited to 'roles/acmetool/cert/filter_plugins')
-rw-r--r-- | roles/acmetool/cert/filter_plugins/acme_certs.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/roles/acmetool/cert/filter_plugins/acme_certs.py b/roles/acmetool/cert/filter_plugins/acme_certs.py deleted file mode 100644 index 179f71e9..00000000 --- a/roles/acmetool/cert/filter_plugins/acme_certs.py +++ /dev/null @@ -1,24 +0,0 @@ -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - -from functools import partial - -from ansible import errors - - -def acme_cert_nonexistent(data, hostnames): - try: - return [hostnames[i] for i, d in enumerate(data) if d['stat']['exists'] == False] - except Exception as e: - raise errors.AnsibleFilterError("acme_cert_nonexistent(): %s" % str(e)) - - -class FilterModule(object): - - ''' acme certificate filters ''' - filter_map = { - 'acme_cert_nonexistent': acme_cert_nonexistent, - } - - def filters(self): - return self.filter_map |