add 10.0.0.0/8 to allowed postgresql hosts

This commit is contained in:
Pim Kunis 2023-03-17 09:18:41 +01:00
parent f3e0d09774
commit 86eaf94190
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Atlas
Terraform and Ansible scripts to configure our KVM hypervisor Debian server.
Atlas is our first Debian server running a KVM hypervisor.
To initialize Terraform:
1. Create pg.tfbackend including `conn_str = "postgres://terraform@atlas.lan/terraform_state"`

View file

@ -71,11 +71,12 @@
databases: all
method: trust
users: terraform
address: 192.168.0.0/16
address: "{{ item }}"
create: true
become: true
become_user: postgres
notify: restart postgres
with_items: ["192.168.0.0/16", "10.0.0.0/8"]
- name: Open postgres port
ini_file:
path: /etc/postgresql/15/main/postgresql.conf