Ansible

Ansible

Made by DeepSource

Package installs should not use latest ANS-E4003

Bug risk
Major

Package installs should use state: present with or without a version.

Use latest ONLY if they are supported by the underlying package module(s) executed.

Bad practice

- name: install packages
  package:
    name: <name-of-the-package>
    state: latest

Recommended

- name: install packages
  package:
    name: <name-of-the-package>
    state: present