diff --git a/roles/nginx/handlers/main.yml b/roles/nginx/handlers/main.yml index 3125c04..ebe0b09 100644 --- a/roles/nginx/handlers/main.yml +++ b/roles/nginx/handlers/main.yml @@ -1,5 +1,5 @@ --- - name: reload nginx - service: name=nginx state=reloaded + systemd: name=nginx state=reloaded # vim: set ts=2 sw=2: diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index e3eb80e..52244dc 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -52,7 +52,7 @@ tags: nginx - name: Start and enable nginx service - service: name=nginx state=started enabled=yes + systemd: name=nginx state=started enabled=yes tags: nginx # vim: set ts=2 sw=2: