Add README file, change variable name
This commit is contained in:
parent
ad6773ab7f
commit
bfbe2e24b8
2 changed files with 26 additions and 1 deletions
25
README.md
Normal file
25
README.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
MariaDB
|
||||||
|
=======
|
||||||
|
|
||||||
|
Diese Rolle installiert MariaDB, inkl.
|
||||||
|
- Monit-Überwachung
|
||||||
|
- Munin-Überwachung
|
||||||
|
- lokale Backups mit automysqlbackup
|
||||||
|
|
||||||
|
Eine Einrichtung des Datenbankservers erfolgt nicht.
|
||||||
|
|
||||||
|
## Verfügbare Variablen
|
||||||
|
|
||||||
|
Folgende Variablen können über die jeweilige `host_vars` im Dictionary `mariadb` gesetzt werden:
|
||||||
|
|
||||||
|
| Varible | Wert | Beschreibung |
|
||||||
|
|--|--|--|
|
||||||
|
| local_backupdir | string | Lokales Verzeichnis der sql-Backups |
|
||||||
|
| bind_address | string | Listen-Adresse des Mariadb-Servers, wird bisher nicht konfiguriert |
|
||||||
|
|
||||||
|
Beispiel:
|
||||||
|
```YAML
|
||||||
|
mariadb:
|
||||||
|
local_backupdir: /var/lib/backups/mariadb
|
||||||
|
bind_address: "10.0.0.2"
|
||||||
|
```
|
|
@ -9,7 +9,7 @@
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/default/automysqlbackup
|
path: /etc/default/automysqlbackup
|
||||||
regexp: '^BACKUPDIR='
|
regexp: '^BACKUPDIR='
|
||||||
line: 'BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}"'
|
line: 'BACKUPDIR="{{ mariadb.local_backupdir | default("/var/lib/automysqlbackup") }}"'
|
||||||
|
|
||||||
- name: "Backup | Copy automysqlbackup postbackup script"
|
- name: "Backup | Copy automysqlbackup postbackup script"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Reference in a new issue