Fix typos

Add file extension to templates
This commit is contained in:
phil 2023-08-14 12:31:32 +02:00
parent 15ce24b532
commit 1f1c8d1542
10 changed files with 11 additions and 8 deletions

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/bin/python"
}

View file

@ -1,12 +1,12 @@
--- ---
- name: "Backup | Copy automysqlbackup configuration" - name: "Backup | Copy automysqlbackup configuration"
ansible.builtin.template: ansible.builtin.template:
src: automysqlbackup src: automysqlbackup.j2
dest: /etc/default/automysqlbackup dest: /etc/default/automysqlbackup
mode: 0644 mode: "0644"
- name: "Backup | Copy automysqlbackup postbackup script" - name: "Backup | Copy automysqlbackup postbackup script"
ansible.builtin.copy: ansible.builtin.copy:
src: automysqlbackup_post_script src: automysqlbackup_post_script
dest: "{{ automysqlbackup_postbackup }}" dest: "{{ automysqlbackup_postbackup }}"
mode: 0755 mode: "0755"

View file

@ -1,7 +1,7 @@
--- ---
- name: Configuration | Copy configuration file - name: Configuration | Copy configuration file
ansible.builtin.template: ansible.builtin.template:
src: mariadb.conf src: mariadb.conf.j2
dest: "/etc/mysql/mariadb.conf.d/90-{{ ansible_hostname }}.cnf" dest: "/etc/mysql/mariadb.conf.d/90-{{ ansible_hostname }}.cnf"
mode: "0644" mode: "0644"
notify: restart mariadb notify: restart mariadb

View file

@ -1,5 +1,5 @@
--- ---
- name: "Cron | Create cromn job for database optimization" - name: "Cron | Create cron job for database optimization"
ansible.builtin.cron: ansible.builtin.cron:
name: 'Ansible: Database optimization' name: 'Ansible: Database optimization'
job: 'chronic mysqlcheck --all-databases --optimize' job: 'chronic mysqlcheck --all-databases --optimize'

View file

@ -9,7 +9,7 @@
- name: "Monit | Copy Monit configuration" - name: "Monit | Copy Monit configuration"
ansible.builtin.template: ansible.builtin.template:
src: monit.conf src: monit.conf.j2
dest: /etc/monit/conf-enabled/mariadb dest: /etc/monit/conf-enabled/mariadb
mode: "0600" mode: "0600"
notify: reload monit notify: reload monit

View file

@ -10,7 +10,7 @@
- name: "Munin | Copy Munin configuration" - name: "Munin | Copy Munin configuration"
ansible.builtin.template: ansible.builtin.template:
src: templates/munin-mariadb.conf src: templates/munin-mariadb.conf.j2
dest: "{{ munin_sql_config_file }}" dest: "{{ munin_sql_config_file }}"
mode: "0660" mode: "0660"
notify: restart munin-node notify: restart munin-node

View file

@ -5,7 +5,7 @@ DBNAMES=`mysql --defaults-file=/etc/mysql/debian.cnf --execute="SHOW DATABASES"
BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}" BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}"
MAILCONTENT="quiet" MAILCONTENT="quiet"
MAXATTSIZE="4000" MAXATTSIZE="4000"
MAILADDR="{{ automysqlbackup_mailaddr | default(root) }}" MAILADDR="{{ automysqlbackup_mailaddr | default("root") }}"
MDBNAMES="mysql $DBNAMES" MDBNAMES="mysql $DBNAMES"
DBEXCLUDE="" DBEXCLUDE=""
CREATE_DATABASE=yes CREATE_DATABASE=yes