From 38c1701310be1eb363a5b9e192b791681c38a53d Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Mon, 26 Aug 2024 17:42:14 +0200 Subject: [PATCH] :construction_worker: Fix linter --- .config/ansible-lint.yml | 2 ++ molecule/debian12_upstream/verify.yml | 2 +- tasks/main.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/ansible-lint.yml b/.config/ansible-lint.yml index 2110236..afe7cd7 100644 --- a/.config/ansible-lint.yml +++ b/.config/ansible-lint.yml @@ -8,3 +8,5 @@ exclude_paths: - venv/ - tests/ # TODO: Remove this line when tests are migrated to molecule - .github/ + +offline: false diff --git a/molecule/debian12_upstream/verify.yml b/molecule/debian12_upstream/verify.yml index ca418fc..9cf8117 100644 --- a/molecule/debian12_upstream/verify.yml +++ b/molecule/debian12_upstream/verify.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 9c8e5f9..f1a0874 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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