Enroll psql1.9iron.club

OH BOY HERE WE GO
This commit is contained in:
Salt 2020-12-27 12:07:55 -06:00
parent caf9a54358
commit b5d4646724
2 changed files with 18 additions and 2 deletions

View File

@ -11,6 +11,7 @@ all:
lap-s76-lemp9-0.desu.ltd:
db:
hosts:
psql1.9iron.club:
psql1.desu.ltd:
web:
hosts:

View File

@ -7,8 +7,6 @@
- role: backup
vars:
backup_script: s3pgdump
backup_s3backup_list_extra:
- /var/lib/postgresql
become: yes
tags: [ backup ]
- role: postgresql
@ -35,3 +33,20 @@
owner: nextcloud
become: yes
tags: [ db, psql ]
- hosts: psql1.9iron.club
roles:
- role: backup
vars:
backup_script: s3pgdump
become: yes
tags: [ backup ]
- role: postgresql
vars:
postgresql_hba_entries:
- { type: local, database: all, user: postgres, auth_method: peer }
- { type: local, database: all, user: all, auth_method: peer }
- { type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5 }
- { type: host, database: all, user: all, address: '::1/128', auth_method: md5 }
- { type: host, database: all, user: all, address: '172.31.0.0/16', auth_method: md5 }
become: yes
tags: [ db, psql ]