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: vars:
zone: 9iron.club zone: 9iron.club
children: children:
webservers-9iron: dbservers:
hosts:
psql1.9iron.club:
webservers:
hosts: hosts:
web1.9iron.club: web1.9iron.club:
fedi1.9iron.club: fedi1.9iron.club:
gameservers-9iron: gameservers:
vars: vars:
backups_frequency: 6h backups_frequency: 6h
steam_api_key: !vault | 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 - name: Template out backup module
template: template:
src: backup.sh src: backup.sh
dest: /opt/backup/modules/pgsql.sh dest: /opt/backup/modules/psql.sh
mode: "0600" mode: "0600"
become: yes become: yes

View File

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