Created
August 11, 2014 19:23
-
-
Save sperlic/e86a3ce5dc511acae797 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
- name: create postgres root user | |
postgresql_user: db=postgres | |
name={{ postgres_root_user }} | |
password={{ postgres_root_pass }} | |
role_attr_flags=SUPERUSER,LOGIN,CREATEDB,CREATEROLE,REPLICATION | |
when: datadir_path.stat.exists == false | |
- name: check postgres root user | |
postgresql_user: db=postgres | |
login_user={{ postgres_root_user }} | |
login_password={{ postgres_root_pass }} | |
login_host=127.0.0.1 | |
name={{ postgres_root_user }} | |
password={{ postgres_root_pass }} | |
role_attr_flags=SUPERUSER,LOGIN,CREATEDB,CREATEROLE,REPLICATION | |
when: datadir_path.stat.exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment