👷 Fix linter

pull/46/head
Emilien Mantel 2024-08-26 17:42:14 +02:00
parent 35c871d873
commit 23e385e146
3 changed files with 4 additions and 2 deletions

View File

@ -8,3 +8,5 @@ exclude_paths:
- venv/
- tests/ # TODO: Remove this line when tests are migrated to molecule
- .github/
offline: false

View File

@ -4,7 +4,7 @@
hosts: all
gather_facts: false
tasks:
- name: COMMAND | Check if mariadb is running
- name: COMMAND | Check if mariadb is running # noqa: command-instead-of-module
ansible.builtin.command: "systemctl is-active mariadb"
register: mariadb_is_running
changed_when: false

View File

@ -19,7 +19,7 @@
- name: INCLUDE | Install
ansible.builtin.import_tasks: install/main.yml
- name: SHELL | Get current mariadb version
- name: SHELL | Get current mariadb version # noqa: risky-shell-pipe
ansible.builtin.shell: dpkg -l mariadb-common | awk '/^ii/ { print $3 }' | sed -r 's/^1://g; s/^([[:digit:]]+\.[[:digit:]]+).+$/\1/g'
register: __mariadb_version
changed_when: false