summaryrefslogtreecommitdiff
path: root/roles/acmetool/cert/filter_plugins/acme_certs.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/acmetool/cert/filter_plugins/acme_certs.py')
-rw-r--r--roles/acmetool/cert/filter_plugins/acme_certs.py24
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