- Ansible Quick Start Guide
- Mohamed Alibi
- 55字
- 2021-07-23 16:37:49
The service management module
This enables Linux system service management: starting, stopping, reloading, restarting, and enabling its system boot start. As an example, we will make sure that all hosts have ntp (that is, network time service) running and enabled:
- name: start and enable ntp service
service:
name: ntp
state: started
enabled: yes