{"action":"closed","issue":{"url":"https://api.github.com/repos/Stouts/Stouts.mongodb/issues/8","labels_url":"https://api.github.com/repos/Stouts/Stouts.mongodb/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Stouts/Stouts.mongodb/issues/8/comments","events_url":"https://api.github.com/repos/Stouts/Stouts.mongodb/issues/8/events","html_url":"https://github.com/Stouts/Stouts.mongodb/issues/8","id":54846351,"number":8,"title":"Run with security after creating user?","user":{"login":"ShawnStrickland","id":4916190,"avatar_url":"https://avatars.githubusercontent.com/u/4916190?v=3","gravatar_id":"","url":"https://api.github.com/users/ShawnStrickland","html_url":"https://github.com/ShawnStrickland","followers_url":"https://api.github.com/users/ShawnStrickland/followers","following_url":"https://api.github.com/users/ShawnStrickland/following{/other_user}","gists_url":"https://api.github.com/users/ShawnStrickland/gists{/gist_id}","starred_url":"https://api.github.com/users/ShawnStrickland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShawnStrickland/subscriptions","organizations_url":"https://api.github.com/users/ShawnStrickland/orgs","repos_url":"https://api.github.com/users/ShawnStrickland/repos","events_url":"https://api.github.com/users/ShawnStrickland/events{/privacy}","received_events_url":"https://api.github.com/users/ShawnStrickland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T05:47:53Z","updated_at":"2015-01-20T22:13:46Z","closed_at":"2015-01-20T22:13:46Z","body":"Is there a way I can restart services using the auth flag?  Right now I'm able to start and create a user in mongo, but then I'd like to restart using the --auth flag so I can limit interaction with the db.\r\n\r\n \r\n    roles:\r\n      - Stouts.mongodb\r\n      - Stouts.nodejs\r\n\r\n    vars:\r\n      mongodb_conf_bind_ip: 127.0.0.1\r\n      mongodb_conf_auth: no\r\n\r\n    tasks:\r\n      - name: Ensure Mongodb is started     \r\n        service: name=mongod state=started\r\n\r\n    post_tasks:\r\n      - name: Generate MongoDB Super User\r\n        mongodb_user: database=admin user=superuser password=daroots state=present"}}