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.0.1.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for ansible_anonymizer-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ecf419f131208ddaf92a4d20c7e1bbd134b906db2dbd1029a2fcac2d4d1b50 |
|
MD5 | 8fa85c033b9b459671d21b96d84f0b6f |
|
BLAKE2b-256 | d93981c8344379eb99897b9504cd70ac7b327ef235f03f2781149c5a5fa9c863 |