From b8260ab4c28fc3c7fd39088920905cffd6dc353c Mon Sep 17 00:00:00 2001 From: Ali Mehraji Date: Sat, 11 Jan 2025 17:50:31 +0330 Subject: [PATCH] update depricated 303 rule, add name[missing] rule --- molecule/default/converge.yml | 2 +- tasks/main.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 629095b..49c4791 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -8,7 +8,7 @@ apt: update_cache=yes cache_valid_time=600 when: ansible_os_family == 'Debian' - - name: Wait for systemd to complete initialization. # noqa 303 + - name: Wait for systemd to complete initialization. # noqa: command-instead-of-module command: systemctl is-system-running register: systemctl_status until: > diff --git a/tasks/main.yml b/tasks/main.yml index dcd47de..9bb928b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,16 +4,16 @@ vars: params: files: - - '{{ansible_distribution}}.yml' - - '{{ansible_os_family}}.yml' + - '{{ ansible_distribution }}.yml' + - '{{ ansible_os_family }}.yml' - main.yml paths: - 'vars' -- include_tasks: setup-RedHat.yml +- include_tasks: setup-RedHat.yml # noqa: name[missing] when: ansible_os_family == 'RedHat' -- include_tasks: setup-Debian.yml +- include_tasks: setup-Debian.yml # noqa: name[missing] when: ansible_os_family == 'Debian' - name: Install Docker packages. @@ -76,7 +76,7 @@ - name: Ensure handlers are notified now to avoid firewall conflicts. meta: flush_handlers -- include_tasks: docker-compose.yml +- include_tasks: docker-compose.yml # noqa: name[missing] when: docker_install_compose | bool - name: Get docker group info using getent. @@ -94,5 +94,5 @@ - item not in ansible_facts.getent_group["docker"][2] with_items: "{{ docker_users }}" -- include_tasks: docker-users.yml +- include_tasks: docker-users.yml # noqa: name[missing] when: at_least_one_user_to_modify is defined