mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-28 10:32:10 +07:00
👷 Fix linter
This commit is contained in:
@@ -8,3 +8,5 @@ exclude_paths:
|
||||
- venv/
|
||||
- tests/ # TODO: Remove this line when tests are migrated to molecule
|
||||
- .github/
|
||||
|
||||
offline: false
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user