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:
Pierre-Yves Chibon 2020-09-24 21:27:35 +02:00
parent ef65a0e620
commit 59d22cfaf7

View file

@ -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: