Ansible Anonymizer
Project description
Library to clean up Ansible tasks from any Personally Identifiable Information (PII)
Free software: Apache Software License 2.0
Features
The library can be used to remove the PII from a multi level structure:
$ python3
>>> from ansible_anonymizer import anonymizer
>>> example = [{"name": "foo bar", "email": "my-email@address.com"}]
>>> anonymizer.anonymize_struct(example)
['- email: lucas27@example.com\n name: foo bar\n']
But you can also anonymize a block of text:
>>> from ansible_anonymizer import anonymizer
>>> some_text = """
... - name: a task
... a_module:
... secret: foobar
... """
>>> anonymizer.anonymize_text_block(some_text)
'\n- name: a task\n a_module:\n secret: {{ }}\n'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansible-anonymizer-1.1.0.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for ansible_anonymizer-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e33e673e9e14cafdab2696cc376c0def15a66b792e0d44d02a247954e259c7ed |
|
MD5 | 85a25994484c97bbf5a6c56bace9931c |
|
BLAKE2b-256 | a56738a405ea56066fad597384fb9d5bbbe00dd1fb515828d6df1a4c45a7515a |