Created
April 17, 2019 01:18
-
-
Save InTheCloudDan/0777b56ca0a3f2715deaebdb15e4439c to your computer and use it in GitHub Desktop.
LaunchDarkly Ansible Test JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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