update depricated 303 rule, add name[missing] rule

This commit is contained in:
Ali Mehraji 2025-01-11 17:50:31 +03:30
parent ffc1374a22
commit b8260ab4c2
2 changed files with 7 additions and 7 deletions

View File

@ -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: >

View File

@ -10,10 +10,10 @@
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