---
- name: nginx systemd
  systemd:
    name: nginx
    enabled: yes
    state: started
- name: nginx restart
  service: name=nginx state=restarted enabled=yes