Install cracklib-runtime Package

Description

The cracklib-runtime package can be installed with the following command:

$ apt-get install cracklib-runtime

Rationale

The cracklib-runtime package supplies the password dictionary tools used by PAM password-quality controls.

Remediation

Shell script

The following script can be run on the host to remediate the issue.

#!/bin/bash

DEBIAN_FRONTEND=noninteractive apt-get install -y cracklib-runtime

Ansible playbook

The following playbook can be run with Ansible to remediate the issue.

- name: Install the latest cracklib-runtime package
  ansible.builtin.apt:
    name: cracklib-runtime
    state: latest
    update_cache: false
  tags:
  - enable_strategy
  - low_complexity
  - low_disruption
  - medium_severity
  - no_reboot_needed
  - package_cracklib-runtime_installed