Sys-service-runner Role¶
Description: No description available
Variables¶
author: Kevin Veen-Birkenbach
description: Runs a collected list of systemd services at the end of a play.
license: Infinito.Nexus NonCommercial License
license_url: https://s.infinito.nexus/license
min_ansible_version: 2.9
platforms: [{‘name’: ‘Linux’, ‘versions’: [‘all’]}]
galaxy_tags: [‘systemd’, ‘services’, ‘infinito’]
README¶
sys-service-runner¶
Description¶
Runs a collected list of systemd services at the end of a play. This is useful for services where flush/restart is suppressed during setup, but should be started once everything they depend on is ready.
How it works¶
Consumes
system_service_run_list(created bysys-servicewhensystem_service_force_flush_final=true).Enables and starts/restarts each service.
Shows diagnostics (
systemctl status,journalctl -xeu) on failure.
Variables¶
system_service_run_list(list): list of systemd unit names to runsys_service_runner_state(string): desired state (started,restarted, …)