Skip to main content

Ansible Anonymizer

Project description

https://img.shields.io/pypi/v/ansible-anonymizer.svg https://github.com/ansible/anonymizer/actions/workflows/tox.yml/badge.svg

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


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.3.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

ansible_anonymizer-1.1.3-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page