Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save InTheCloudDan/0777b56ca0a3f2715deaebdb15e4439c to your computer and use it in GitHub Desktop.
Save InTheCloudDan/0777b56ca0a3f2715deaebdb15e4439c to your computer and use it in GitHub Desktop.
LaunchDarkly Ansible Test JSON
# Creates a Boolean flag
{
"ANSIBLE_MODULE_ARGS": {
"api_key": "change_me",
"type": "bool",
"state": "present",
"key": "example_fabbbnafewfzq",
"tags": ["yellow", "green"],
"name": "ansible-random-new-name",
"description": "This is an awesome feature that will be implemented."
}
}
# Creates a JSON flag
{
"ANSIBLE_MODULE_ARGS": {
"api_key": "change_me",
"type": "json",
"state": "present",
"key": "example_farwefawe_known",
"tags": ["yellow", "bgreen"],
"name": "ansible-random-new-name",
"description": "This is an awesome feature that will be implemented.",
"variations": [{ "blue": "green" }, { "orange": "yellow" }]
}
}
# Creates a boolean flag with a description, included on client-side, and enabled. track_events not implemented.
{
"ANSIBLE_MODULE_ARGS": {
"api_key": "change_me",
"type": "bool",
"state": "present",
"key": "example_fvzmmbalvgeerazq",
"tags": ["yellow", "bgreen"],
"name": "ansible-random-new-name",
"description": "This is an awesome feature that will be implemented.",
"config": { "on": true, "track_events": true },
"flag_enabled": "yes",
"include_in_snippet": "yes"
}
}
# Delete flag with provided key
{
"ANSIBLE_MODULE_ARGS": {
"api_key": "change_me",
"state": "absent",
"key": "example_fvzmmbalvgeerazq",
"type": "str"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment