Skip to content

Commit

Permalink
Removed extra space from pg_hba/conf
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 21, 2024
1 parent 1e74ad8 commit 3a34ac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions automation/roles/tls_certificate/copy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,4 @@
- { index: 0, path: "{{ tls_privatekey_path | default('/etc/tls/server.key') }}", mode: "0400" }
- { index: 1, path: "{{ tls_cert_path | default('/etc/tls/server.crt') }}", mode: "0644" }
- { index: 2, path: "{{ tls_ca_cert_path | default('/etc/tls/ca.crt') }}", mode: "0644" }

- name: Delete TLS certificate and key from the ansible controller
ansible.builtin.file:
path: "files/tls/"
state: absent
delegate_to: localhost
run_once: true
when: copy_for == 'pg'
6 changes: 3 additions & 3 deletions automation/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ postgresql_pg_hba:
- { type: "local", database: "all", user: "all", address: "", method: "{{ postgresql_password_encryption_algorithm }}" }
- { type: "host", database: "all", user: "all", address: "127.0.0.1/32", method: "{{ postgresql_password_encryption_algorithm }}" }
- { type: "host", database: "all", user: "all", address: "::1/128", method: "{{ postgresql_password_encryption_algorithm }}" }
- type: >
- type: >-
{% if tls_cert_generate | bool %}hostssl
{% else %}host
{% endif %}
Expand All @@ -353,7 +353,7 @@ postgresql_pg_hba:
address: "0.0.0.0/0"
method: "{{ postgresql_password_encryption_algorithm }}"
# - type: >
# - type: >-
# {% if tls_cert_generate | bool %}hostssl
# {% else %}host
# {% endif %}
Expand All @@ -362,7 +362,7 @@ postgresql_pg_hba:
# address: "192.168.0.0/24"
# method: "{{ postgresql_password_encryption_algorithm }}"

# - type: >
# - type: >-
# {% if tls_cert_generate | bool %}hostssl
# {% else %}host
# {% endif %}
Expand Down

0 comments on commit 3a34ac1

Please sign in to comment.