Fix typos
Add file extension to templates
This commit is contained in:
parent
15ce24b532
commit
1f1c8d1542
10 changed files with 11 additions and 8 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"ansible.python.interpreterPath": "/bin/python"
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: "Backup | Copy automysqlbackup configuration"
|
||||
ansible.builtin.template:
|
||||
src: automysqlbackup
|
||||
src: automysqlbackup.j2
|
||||
dest: /etc/default/automysqlbackup
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
|
||||
- name: "Backup | Copy automysqlbackup postbackup script"
|
||||
ansible.builtin.copy:
|
||||
src: automysqlbackup_post_script
|
||||
dest: "{{ automysqlbackup_postbackup }}"
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Configuration | Copy configuration file
|
||||
ansible.builtin.template:
|
||||
src: mariadb.conf
|
||||
src: mariadb.conf.j2
|
||||
dest: "/etc/mysql/mariadb.conf.d/90-{{ ansible_hostname }}.cnf"
|
||||
mode: "0644"
|
||||
notify: restart mariadb
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: "Cron | Create cromn job for database optimization"
|
||||
- name: "Cron | Create cron job for database optimization"
|
||||
ansible.builtin.cron:
|
||||
name: 'Ansible: Database optimization'
|
||||
job: 'chronic mysqlcheck --all-databases --optimize'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: "Monit | Copy Monit configuration"
|
||||
ansible.builtin.template:
|
||||
src: monit.conf
|
||||
src: monit.conf.j2
|
||||
dest: /etc/monit/conf-enabled/mariadb
|
||||
mode: "0600"
|
||||
notify: reload monit
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- name: "Munin | Copy Munin configuration"
|
||||
ansible.builtin.template:
|
||||
src: templates/munin-mariadb.conf
|
||||
src: templates/munin-mariadb.conf.j2
|
||||
dest: "{{ munin_sql_config_file }}"
|
||||
mode: "0660"
|
||||
notify: restart munin-node
|
||||
|
|
|
@ -5,7 +5,7 @@ DBNAMES=`mysql --defaults-file=/etc/mysql/debian.cnf --execute="SHOW DATABASES"
|
|||
BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}"
|
||||
MAILCONTENT="quiet"
|
||||
MAXATTSIZE="4000"
|
||||
MAILADDR="{{ automysqlbackup_mailaddr | default(root) }}"
|
||||
MAILADDR="{{ automysqlbackup_mailaddr | default("root") }}"
|
||||
MDBNAMES="mysql $DBNAMES"
|
||||
DBEXCLUDE=""
|
||||
CREATE_DATABASE=yes
|
Loading…
Reference in a new issue