Add a DB server

This commit is contained in:
Salt 2020-08-01 16:47:56 -05:00
parent 222edec7fe
commit 290b180a61
4 changed files with 15 additions and 3 deletions

View File

@ -40,11 +40,14 @@ all:
vars:
zone: 9iron.club
children:
webservers-9iron:
dbservers:
hosts:
psql1.9iron.club:
webservers:
hosts:
web1.9iron.club:
fedi1.9iron.club:
gameservers-9iron:
gameservers:
vars:
backups_frequency: 6h
steam_api_key: !vault |

8
playbooks/dbservers.yml Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
- hosts: psql1.9iron.club
roles:
- role: backups
tags: [ backups ]
- role: postgresql
tags: [ db, psql ]

View File

@ -18,6 +18,6 @@
- name: Template out backup module
template:
src: backup.sh
dest: /opt/backup/modules/pgsql.sh
dest: /opt/backup/modules/psql.sh
mode: "0600"
become: yes

View File

@ -32,6 +32,7 @@
- role: snmpd
tags: [ common, snmpd ]
- import_playbook: playbooks/dns.yml
- import_playbook: playbooks/dbservers.yml
- import_playbook: playbooks/webservers.yml
- import_playbook: playbooks/gameservers.yml
- import_playbook: playbooks/home.yml