pagure: create the db user and the db itself via ansible
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
ef65a0e620
commit
59d22cfaf7
1 changed files with 17 additions and 0 deletions
|
@ -64,6 +64,23 @@
|
|||
tags:
|
||||
- pagure
|
||||
|
||||
- name: create the pagure DB user
|
||||
postgresql_user:
|
||||
name: "{{ pagure_db_user }}"
|
||||
password: "{{ pagure_db_pass }}"
|
||||
tags:
|
||||
- pagure
|
||||
- postgresql
|
||||
|
||||
- name: create the pagure database creation
|
||||
postgresql_db:
|
||||
name: "{{ pagure_db_name }}"
|
||||
owner: "{{ pagure_db_user) }}"
|
||||
encoding: UTF-8
|
||||
tags:
|
||||
- pagure
|
||||
- postgresql
|
||||
|
||||
- name: Put in robots.txt
|
||||
template: src=robots.txt.j2 dest=/var/www/html/robots.txt
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue