Update pre-commit action and versions
This commit is contained in:
parent
c3aaf04910
commit
654b620409
|
|
@ -11,4 +11,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- uses: pre-commit/action@v3.0.0
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.1.0
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-ast
|
||||
|
|
@ -27,7 +27,7 @@ repos:
|
|||
- id: yamllint
|
||||
name: Check yaml files (yamllint)
|
||||
- repo: https://github.com/ansible/ansible-lint.git
|
||||
rev: v6.0.2
|
||||
rev: v6.3.0
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
name: Check ansible files (ansible-lint)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
hour: "{{ mariadb_backup_db_cron_hour }}"
|
||||
job: "/usr/local/bin/mariadb_dump_db.sh \
|
||||
-d \"{{ mariadb_backup_db_dir }}\" \
|
||||
-l \"{{ mariadb_backup_db_name|join(',') }}\" \
|
||||
-l \"{{ mariadb_backup_db_name | join(',') }}\" \
|
||||
-k {{ mariadb_backup_db_rotation }} \
|
||||
{{ mariadb_backup_cron_std_output }} {{ mariadb_backup_db_dir }}/mariadb_dump_db.log"
|
||||
cron_file: mariadb_dump_db
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
- name: Setup mariadb repository sourcelist entry
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb {{ mariadb_use_official_repo_url }}/{{ mariadb_use_official_repo_version }}/{{ ansible_distribution|lower() }} {{ ansible_distribution_release }} main
|
||||
repo: deb {{ mariadb_use_official_repo_url }}/{{ mariadb_use_official_repo_version }}/{{ ansible_distribution | lower() }} {{ ansible_distribution_release }} main
|
||||
filename: mariadb
|
||||
state: present
|
||||
when: mariadb_use_official_repo
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
- name: Determine required MariaDB Python libraries
|
||||
ansible.builtin.set_fact:
|
||||
deb_mariadb_python_package: "{% if 'python3' in discovered_interpreter_python|default('') %}python3-pymysql{% else %}python-pymysql{% endif %}"
|
||||
deb_mariadb_python_package: "{% if 'python3' in discovered_interpreter_python | default('') %}python3-pymysql{% else %}python-pymysql{% endif %}"
|
||||
|
||||
- name: Install python mariadb driver
|
||||
ansible.builtin.apt:
|
||||
|
|
|
|||
Loading…
Reference in New Issue