Skip to content

Instantly share code, notes, and snippets.

@carlesso
Created January 15, 2015 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlesso/d3c71165583c1a40e28d to your computer and use it in GitHub Desktop.
Save carlesso/d3c71165583c1a40e28d to your computer and use it in GitHub Desktop.
db.yml
- name: Create PostgreSQL Users for rails applications
sudo: yes
sudo_user: postgres
when: item.db == 'postgresql'
postgresql_user: db={{ item.postgresql.database }} name={{ item.postgresql.username }} password={{ item.postgresql.password }} priv=ALL
with_items: rails_applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment