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'
You can also use the ansible-anonymizer command:
ansible-anonymizer my-secret-file
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.2.2.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for ansible_anonymizer-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eda6ea9ee1582765ef3d5e5f00fa0df2dac60ae27ca1da8cd74dadbeeade958 |
|
MD5 | 28c11ecb0f837ec827e0f4839b5c0d9f |
|
BLAKE2b-256 | cd8b24be05ca4b9eea59fd0c561cc9f748ba3b451ff9844ada32304b3b016d39 |