db.grantRolesToUser("admin",[{role:"root","db":"admin"}])
|
Reference: http://stackoverflow.com/questions/23943651/mongodb-admin-user-not-authorized
My online tech scrapbook where I keep my notes in case I need to look them up later
db.grantRolesToUser("admin",[{role:"root","db":"admin"}])
|
- name: stat the dest path
stat: path=/path/dest
register: statdest
- name: move file
command: mv /path/src /path/dest
when: statdest.stat.exists == false
|
$ str="one two three"
$ set -- $str
$ echo $1
one
$ echo $2
two
$ echo $3
three
|
- hosts: appservers
vars_files:
- vars.yml
|
var1Name: var1Value
var2Name: var2Value
var3Name: var3Value
|