0. Online Help
$ ansible-doc service
1. Example
- name: Start service httpd, if not started
service:
name: httpd
state: started
enabled: yes
2. Key Points
- it needs 'root' privilege
- it depends on low-level service manager like systemd, init,... based on fact "ansible_service_mgr'.
- The service name is not the same among different distributions.
No comments:
Post a Comment