diff options
Diffstat (limited to 'roles/install_nginx')
-rw-r--r-- | roles/install_nginx/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/install_nginx/tasks/main.yml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/install_nginx/handlers/main.yml b/roles/install_nginx/handlers/main.yml new file mode 100644 index 0000000..04f4ea0 --- /dev/null +++ b/roles/install_nginx/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: reload nginx + systemd: + name: nginx.service + state: reloaded diff --git a/roles/install_nginx/tasks/main.yml b/roles/install_nginx/tasks/main.yml index 5b8fe65..1e21bec 100644 --- a/roles/install_nginx/tasks/main.yml +++ b/roles/install_nginx/tasks/main.yml @@ -8,6 +8,7 @@ copy: src: nginx.conf dest: /etc/nginx/nginx.conf + notify: reload nginx - name: add sites-available folder file: |