Skip to main content

A small helper library to manage local directories for Ansible Runner

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Deprecated

Please do not use this tool, it is deprecated and no longer maintained. What this package sets out to do can easily be accomplished with Ansible Runner's interface.run() method instead. For example:

# my_automation_tool.py

from ansible_runner import interface as runner_interface

runner = runner_interface.run(
    private_data_dir='path/to/tmp-private-data',
    playbook='setup-my-server.yml',
    inventory={
        'all': {
            'hosts': {
                'my-server.com': {'ansible_user': 'remote_user'},
            },
        },
        'ungrouped': {'hosts': {}},
    },
    extravars={
        'some_string': 'Hello, World!',
        'some_list': ['Hello', 'World!'],
    },
    project_dir='/path/to/my_automation_tool/src/project',
    # etc...
)
if runner.rc == 0:
    print('Finished successfully')
else:
    print('Error')

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_directory_helper-0.3.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_directory_helper-0.3.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ansible_directory_helper-0.3.1.tar.gz.

File metadata

File hashes

Hashes for ansible_directory_helper-0.3.1.tar.gz
Algorithm Hash digest
SHA256 dca6f47477194ccb5b70d0aeac889605af6d5e80730e5ea0c6b217183d27d32f
MD5 8638a254dc8efce0aad4b0248d06fcd1
BLAKE2b-256 7e85f52c8ae02cfb0b384798f8c484da5cc28f769ff4cfbea443a9cd6e132189

See more details on using hashes here.

File details

Details for the file ansible_directory_helper-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_directory_helper-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c24dfcf80a4189e87e2247d2a2e1aa9860b6f03b760f0e4c3733f9384f70260
MD5 8adfdc3405ebd4fd6a2f6afdf130a1c2
BLAKE2b-256 514a84b06374d342977f0605bc62fec3c03dbe2a761a67e79f4b28f3eb104f0d

See more details on using hashes here.

Supported by

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