libravatar: copy custom pg_hba.conf

This commit is contained in:
clime 2018-10-10 16:07:40 +02:00
parent 9176f0f1ba
commit 389bd76a14
2 changed files with 14 additions and 3 deletions

View file

@ -1 +1,5 @@
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: restart postgresql
service: name=postgresql
state=restarted

View file

@ -43,10 +43,17 @@
tags:
- config
- name: ensure postgresql state
service: state=started enabled=yes name={{ item }}
- name: copy pg_hba.conf
copy: src="pg/{{ item }}" dest="/var/lib/pgsql/data/{{ item }}"
with_items:
- postgresql
- pg_hba.conf
notify:
- restart postgresql
tags:
- config
- name: ensure postgresql state
service: state=started enabled=yes name=postgresql
- name: upgrade db to head
command: "run-in-venv.sh python3 manage.py migrate"