ansible / ansible.builtin / v2.5.10 / module / service_facts Return service state information as fact data | "added in version" 2.5 of ansible.builtin" Authors: Matthew Jones, Adam Miller (@maxamillion) preview | supported by communityansible.builtin.service_facts (v2.5.10) — module
pip
Install with pip install ansible==2.5.10
Return service state information as fact data for various service management utilities
- name: populate service facts service_facts:
- debug: var: ansible_facts.services
ansible_facts: contains: services: arp-ethers.service: name: arp-ethers.service source: systemd state: stopped network: name: network source: sysv state: running description: facts to add to ansible_facts about the services on the system returned: always type: complex