abaez.hashicluster.cpu_mhz_info (1.9.100) — module

Get information about the CPU in MHz

| "added in version" 2.9 of abaez.hashicluster"

Authors: Alejandro Baez (@abaez)

preview | supported by community

Install collection

Install with ansible-galaxy collection install abaez.hashicluster:==1.9.100


Add to requirements.yml

  collections:
    - name: abaez.hashicluster
      version: 1.9.100

Description

This module returns information about the CPU's total in megahertz.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get all the CPU MHz available
  cpu_mhz_info:
  register: mhz_info
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get only minium MHz
  cpu_mhz_info:
    fmt: min
  register: mhz_min_info

Inputs

    
fmt:
    choices:
    - all
    - max
    - current
    - min
    default: all
    description:
    - What output format should be given. The default is all
    required: false
    type: str

Outputs

current:
  description: The current cpu MHz available
  returned: success or 'current' option
  sample: '10989'
  type: int
max:
  description: The max total CPU MHz
  returned: success or 'max' option
  sample: '16000'
  type: int
min:
  description: The current minimum CPU MHz
  returned: success or 'current' option
  sample: '12800'
  type: int