libravatar: copy custom pg_hba.conf
This commit is contained in:
parent
9176f0f1ba
commit
389bd76a14
2 changed files with 14 additions and 3 deletions
|
@ -1 +1,5 @@
|
|||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
- name: restart postgresql
|
||||
service: name=postgresql
|
||||
state=restarted
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue