👷 Fix linter
parent
bd8f9604f7
commit
38c1701310
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue