Ansible logoAnsible/
ANS-E4003

Package installs should not use `latest`ANS-E4003

Major severityMajor
Bug Risk categoryBug Risk

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
- name: install packages
  package:
    name: <name-of-the-package>
    state: present