Created
March 16, 2015 20:09
-
-
Save anonymous/6d7ddfedfbef434b2f54 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Indexes | |
mongodb_indexes: | |
catalog: [ | |
"db.serviceMetadata.createIndex({service: 1, objectId: 1},{background: true})", | |
"db.program.createIndex({title:1},{background : true})" ] | |
guid: [ | |
"db.guids.createIndex({type:1},{background:true})", | |
"db.guids.createIndex({'data.peopleInfo.type':1,'data.peopleInfo.firstname':1},{background:true, sparse:true})" ] |
This file contains hidden or 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
tasks: | |
- name: Setup mongodb indexes | |
debug: msg="Key is {{ item.key }} with items {{ item.value }}" | |
with_dict: mongodb_indexes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hmm, unfortunately the above didn't work, the item.0 only returned {}. instead, it needed this format
which is basically like a with_together, except the second list is nested. Not what i was expecting, and it's annoying it didn't allow just the key.