Skip to content

Commit

Permalink
changed variable to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
sleif committed Nov 29, 2023
1 parent 6be3f4a commit a6f486d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ mariadb_container_max_connections: '512'
mariadb_container_exposed_port: '3306'

mysql_container_name: "mariadb"
MYSQL_ROOT_PASSWORD: "mysql_root_password"
MYSQL_USER: "mysql_db_user"
mysql_root_password: "mysql_root_password"
mysql_user: "mysql_db_user"
mysql_password: "mysql_db_user_password"
mysql_database: "mariadb_custom_database"

Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
MYSQL_USER: "{{ mysql_user }}"
MYSQL_PASSWORD: "{{ mysql_password }}"
MYSQL_DATABASE: "{{ mysql_database }}"
MYSQL_ROOT_PASSWORD: "{{ MYSQL_ROOT_PASSWORD }}"
MYSQL_ROOT_PASSWORD: "{{ mysql_root_password }}"

- name: "create {{ mysql_container_name }} backup directory"
ansible.builtin.file:
Expand All @@ -73,7 +73,7 @@
name: "Daily dump of mariadb {{ mysql_database }}"
minute: "11"
hour: "*/4"
job: "docker exec {{ mysql_container_name }} sh -c 'exec mariadb-dump --lock-tables --all-databases --user=root --password={{ MYSQL_ROOT_PASSWORD }}' >
job: "docker exec {{ mysql_container_name }} sh -c 'exec mariadb-dump --lock-tables --all-databases --user=root --password={{ mysql_root_password }}' >
{{ container_storage_dir_base_backup }}/{{ mysql_container_name }}_backups/{{ mysql_container_name }}.sql;
bzip2 -f {{ container_storage_dir_base_backup }}/{{ mysql_container_name }}_backups/{{ mysql_container_name }}.sql"
tags:
Expand Down

0 comments on commit a6f486d

Please sign in to comment.