Add a DB server
This commit is contained in:
parent
222edec7fe
commit
290b180a61
@ -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
8
playbooks/dbservers.yml
Normal 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 ]
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user