上QQ阅读APP看书,第一时间看更新
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