Ansible Galaxy thbe > security

Mon, 26 Dec. 2022     Thomas Bendler     ~ 2 min to read

thbe > security

Molecule

This role configures and deploys security settings and tools on an RHEL instance or RHEL clone.

Link

Ansible Galaxy Role thbe.security

Requirements

This role does not have any requirements.

Role Variables

  • role_directory - This variable contains the root path of the directories used by thbe roles (do not change!)
  • password_quality_file - This variable contains the password quality file (do not change!)
  • password_login_file - This variable contains the login file (do not change!)
  • minlen (default: 16)
  • lcredit (default: -1)
  • ucredit (default: -1)
  • dcredit (default: -1)
  • ocredit (default: -1)
  • pass_max_days - Maximum days before password change is required (default: 365)
  • pass_min_days - Minimum days before password could be changed (default: 0)
  • pass_min_len - Minimum password length (default: 8)
  • pass_warn_age - Days before warning that password will expire (default: 7)
  • remember - Number of passwords to remember (default: 24)

Dependencies

This role depends on:

  • thbe.common
  • thbe.rhel
  • thbe.baseline

Example Playbook

This role can be included in the site.yml like this:

- name: Ansible playbooks for all nodes
  hosts: all
  collections:
    - ansible.posix
    - community.general
  gather_facts: true
  tasks:
    - name: Role Common
      ansible.builtin.include_role:
        name: thbe.common
    - name: Role rhel
      ansible.builtin.include_role:
        name: thbe.rhel
    - name: Role Baseline
      ansible.builtin.include_role:
        name: thbe.baseline
    - name: Role Security
      ansible.builtin.include_role:
        name: thbe.security

License

GPL-3.0-only



Share on: