简体   繁体   English

在Ansible中,服务和systemd模块之间的差异是什么?

[英]In Ansible, what's the diffence between the service and the systemd modules?

In Ansible, what is the difference between the service and the systemd modules? 在Ansible中,服务和systemd模块之间有什么区别? The service module seems to include the systemd module so what's the point of having systemd by itself? 服务模块似乎包含了systemd模块,那么systemd本身有什么意义呢?

The module service is a generic one. 模块服务是通用的。 According to the Ansible documentation : 根据Ansible文档

Supported init systems include BSD init, OpenRC, SysV, Solaris SMF, systemd, upstart. 支持的init系统包括BSD init,OpenRC,SysV,Solaris SMF,systemd,upstart。

The module systemd is available only from Ansible 2.2 and is dedicated to systemd. 模块systemd仅可从Ansible 2.2获得,专用于systemd。

According to the developers of Ansible : 根据Ansible的开发人员的说法

we are moving away from having everything in a monolithic 'service' module and splitting into specific modules, following the same model the 'package' module has. 我们正在逐步完成整体“服务”模块中的所有内容,并按照“包”模块所具有的相同模型拆分为特定模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM