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