Skip to content

Instantly share code, notes, and snippets.

@lindsm
Last active October 26, 2015 18:14
Show Gist options
  • Save lindsm/c71749c4f07d88e3da31 to your computer and use it in GitHub Desktop.
Save lindsm/c71749c4f07d88e3da31 to your computer and use it in GitHub Desktop.
Ansible example
vars:
keys_added:
- app: "app-ce-async-bridge"
key: "ce-jms-cluster.jms.url.list"
value: ""
- app: "csr"
key: "eshopworld-csp.url"
value: "{{ eshopworld_csp_url }}"
- app: "atg-global-envconfig"
key: "ap.esw.cic.http.url"
value: "{{ cic_http_url }}"
- app: "atg-global-envconfig"
key: "ap.esw.preorder.http.url"
value: ""
tasks:
- name: "{{ keys_added.app }} kvdb change for 10A"
add_app_key_to_env:
app: "{{ keys_added.app }}"
key: "{{ keys_added.key }}"
value: "{{ keys_added.value }}"
commit_message: "This should be a default key in the app.xml not in a env.xml change 10A"
ecntype: "core"
env: "{{ target_env }}"
password: "{{ password }}"
username: "{{ username }}"
with_items: "{{ keys_added }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment