This project is not officially supported by LaunchDarkly.
This version of the Ansible collection is a beta version and should not be considered ready for production use while this message displays.
This collection provides a series of Ansible modules and plugins for interacting with LaunchDarkly.
Additional documentation is available: LaunchDarkly Ansible collection.
To use the modules and plugins in this collection, you need:
- ansible version >= 2.9
- launchdarkly-api >= 2.0.24
- dictdiffer == 0.8.0
To install this collection, use:
ansible-galaxy collection install launchdarkly_labs.collection
Then, install the library dependencies. These are listed in requirements.txt
, which is in the directory where Ansible installed your collection. By default, this is ~/.ansible/collections
.
To install the library dependencies, use:
python -m pip install -r ~/.ansible/collections/ansible_collections/launchdarkly_labs/collection/requirements.txt
To use a module from the Ansible collection, reference the full namespace, collection name, and module name that you want to use. Here's how:
---
- name: Using LaunchDarkly collection
hosts: localhost
tasks:
- launchdarkly_labs.collection.launchdarkly_feature_flag:
name: example
kind: bool
state: present
temporary: false
key: example_flag_creation
Alternatively, you can specify the full namespace and collection name in the collections
element:
---
- name: Using LaunchDarkly collection
hosts: localhost
collections:
- launchdarkly_labs.collection
tasks:
- launchdarkly_feature_flag:
name: example
kind: bool
state: present
temporary: false
key: example_flag_creation
The LaunchDarkly Ansible collection supports the following resources:
launchdarkly_custom_role
: Manage custom roleslaunchdarkly_environment
: Manage environments for a given projectlaunchdarkly_feature_flag
: Manage feature flagslaunchdarkly_feature_flag_environment
: Configure environment-specific flag targetinglaunchdarkly_feature_flag_info
: Return a list of feature flagslaunchdarkly_feature_flag_sync
: Sync flag settings across environmentslaunchdarkly_feature_flag_validator
: Validate feature flags by running a configuration testlaunchdarkly_project
: Manage projectslaunchdarkly_project_copy
: Copy a projectlaunchdarkly_project_info
: Return a list of projectslaunchdarkly_test_generator
: Create a JSON file for local testing with a LaunchDarkly SDKlaunchdarkly_user_segment
: Manage user segmentslaunchdarkly_user_segment_sync
: Copy a user segment across environmentslaunchdarkly_variation_info
: Return the value from a feature flag evaluationlaunchdarkly_webhook
: Manage LaunchDarkly webhooks
The LaunchDarkly Ansible collection supports the following lookups:
launchdarkly_environment
: Look up a specific environmentlaunchdarkly_user_segment
: Look up a specific user segment
LaunchDarkly is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!
We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.
- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
- Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
- Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
- Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
- Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out our documentation for a complete list.
- Explore LaunchDarkly
- launchdarkly.com for more information
- docs.launchdarkly.com for our documentation and SDK reference guides
- apidocs.launchdarkly.com for our API documentation
- blog.launchdarkly.com for the latest product updates
- Feature Flagging Guide for best practices and strategies