Commit 03b05721 authored by anopheles's avatar anopheles
Browse files

Crear directorio

parent fdc9e152
......@@ -26,6 +26,12 @@
- name: sutty
purge_networks: yes
- name: ensure postgresql access logs directory exists
file: >
path="{{ root }}{{ directories.postgresql }}/{{ postgresql.version }}/data"
recurse=yes
state=directory
# Allow nginx to store logs
- name: postgresql access logs
postgresql_pg_hba:
......@@ -35,6 +41,7 @@
source: nginx.sutty
databases: "{{ postgresql.database }}"
method: trust
create: yes
- name: postgresql trust
when: "inventory_hostname == delegate.hostname"
......@@ -45,6 +52,7 @@
source: "{{ item.source }}.sutty"
databases: "{{ postgresql.database }}"
method: trust
create: yes
loop:
- user: sutty
source: sutty
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment