Ansible内置模块之systemd
# 启动并启用服务- name: Start the Apache serviceansible.builtin.systemd:name: httpdstate: startedenabled: yes# 停止服务- name: Stop the Apach
# 启动并启用服务- name: Start the Apache serviceansible.builtin.systemd:name: httpdstate: startedenabled: yes# 停止服务- name: Stop the Apach