-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathansbl.yml
More file actions
32 lines (27 loc) · 805 Bytes
/
Copy pathansbl.yml
File metadata and controls
32 lines (27 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- hosts: all
user: vagrant
become: true
become_method: sudo
tasks:
- name: add fpcomplete key
apt_key: url=https://s3.amazonaws.com/download.fpcomplete.com/debian/fpco.key state=present
- name: add stack repo
apt_repository: repo='deb http://download.fpcomplete.com/debian/jessie stable main' state=present
- name: Installing packages
apt: pkg={{item}} update_cache=yes state=latest
with_items:
- postgresql
- libpq-dev
- python-psycopg2
- stack
- name: Creating db
become_user: postgres
postgresql_db:
name: cuti
- name: Creating db user
become_user: postgres
postgresql_user:
db: cuti
name: kingcrimson
password: NingenIsu
role_attr_flags: SUPERUSER