adfinis.facts.timer_facts (1.0.2) — module

Return timer state information as fact data

| "added in version" 2.5 of adfinis.facts"

Authors: Adam Miller (@maxamillion), Adfinis AG

Install collection

Install with ansible-galaxy collection install adfinis.facts:==1.0.2


Add to requirements.yml

  collections:
    - name: adfinis.facts
      version: 1.0.2

Description

Return timer state information as fact data for various timer management utilities.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Populate timer facts
  ansible.builtin.timer_facts:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Print timer facts
  ansible.builtin.debug:
    var: ansible_facts.timers

Outputs

ansible_facts:
  contains:
    timers:
      contains:
        name:
          description: Name of the timer.
          returned: always
          sample: arp-ethers.timer
          type: str
        source:
          description:
          - Init system of the timer.
          - C(systemd)
          returned: always
          sample: sysv
          type: str
        state:
          description:
          - State of the timer.
          - 'This commonly includes (but is not limited to) the following: C(failed),
            C(running), C(stopped) or C(unknown).'
          - Depending on the used init system additional states might be returned.
          returned: always
          sample: running
          type: str
        status:
          description:
          - State of the timer.
          - Either C(enabled), C(disabled), C(static), C(indirect) or C(unknown).
          returned: systemd systems
          sample: enabled
          type: str
      description: States of the timers with timer name as key.
      returned: always
      type: complex
  description: Facts to add to ansible_facts about the timers on the system
  returned: always
  type: complex