👷 Fix linter

Emilien Mantel 2024-08-26 17:42:14 +02:00
parent 6d0eb53d60
commit 620d32320a
3 changed files with 4 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
hosts: all hosts: all
gather_facts: false gather_facts: false
tasks: 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" ansible.builtin.command: "systemctl is-active mariadb"
register: mariadb_is_running register: mariadb_is_running
changed_when: false changed_when: false

View File

@ -19,7 +19,7 @@
- name: INCLUDE | Install - name: INCLUDE | Install
ansible.builtin.import_tasks: install/main.yml 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' ansible.builtin.shell: dpkg -l mariadb-common | awk '/^ii/ { print $3 }' | sed -r 's/^1://g; s/^([[:digit:]]+\.[[:digit:]]+).+$/\1/g'
register: __mariadb_version register: __mariadb_version
changed_when: false changed_when: false