launchdarkly_feature_flag – Interact with projects, flags of LaunchDarkly

New in version 0.1.0.

Synopsis

  • Manage LaunchDarkly manage feature flags and account settings.

Parameters

Parameter Choices/Defaults Comments
api_key
string / required
LaunchDarkly API Key. May be set as LAUNCHDARKLY_ACCESS_TOKEN environment variable.
conftest
string
Compare input against a rego policy
dir
-
Directory to load the Rego policy from
enabled
-
Run the policy checks
namespace
-
Rego namespace to run the tests against
include_in_snippet
boolean
    Choices:
  • no
  • yes
Whether or not this flag should be made available to the client-side JavaScript SDK
key
string / required
A unique key that will be used to reference the flag in your code.
kind
-
    Choices:
  • bool ←
  • str
  • number
  • json
Set what type of flag this will be.
name
-
Name of the flag, if not provided and API calls requires it, key value will be used.
project_key
- / required
Default:
"default"
Project key will group flags together
state
-
    Choices:
  • absent
  • enabled
  • disabled
  • deleted
  • present ←
Indicate desired state of the resource
tags
string
An array of tags for this feature flag.
temporary
boolean
    Choices:
  • no
  • yes ←
Toggle if flag is temporary or permanent
variations
list
An array of dictionaries containing possible variations for the flag.

Examples

# Create a new flag
- launchdarkly_feature_flag:
    name: example
    kind: bool
    state: present
    temporary: false
    key: example_flag_creation

- launchdarkly_feature_flag:
    name: example
    kind: bool
    key: example_flag_creation1
    state: present
    tags:
     - tag1
     - tag2
    include_in_snippet: true

Return Values

Common return values are documented here, the following are the fields unique to this :

Key Returned Description
feature_flag
dictionary
on success
Dictionary containing a Feature Flag



Status

  • This is not guaranteed to have a backwards compatible interface. [preview]

  • This is maintained by the Ansible Community. [community]

Hint

If you notice any issues in this documentation, you can edit this document to improve it.

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.