Member-only story
Restart services on remote hosts — Ansible module service
How to restart services on a managed host using Ansible? The service module supports init systems include BSD init, OpenRC, SysV, Solaris SMF, systemd, upstart. I’m going to show you how to restart services on a Linux-managed host with some simple code.
How to restart services on remote hosts with Ansible?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible restart services on remote hosts
Today we’re talking about the Ansible module service.
The full name is ansible.builtin.service which means is part of the collection of modules “builtin” with ansible and shipped with it.
This module is pretty stable and out for years.
The purpose is to controls services on remote hosts.
The Supported service systems include BSD, OpenRC, SysV, Solaris SMF, systemd, and upstart.