Commit 86b18340 authored by Oliver Lowe's avatar Oliver Lowe
Browse files

Simpler notify syntax

No need for list when there's just 1 handler
parent 57e48907
...@@ -36,28 +36,24 @@ ...@@ -36,28 +36,24 @@
- name: install elasticsearch - name: install elasticsearch
package: package:
name: elasticsearch-oss name: elasticsearch-oss
notify: notify: restart elasticsearch
- restart elasticsearch
- name: configure elasticsearch - name: configure elasticsearch
copy: copy:
src: elasticsearch.yml src: elasticsearch.yml
dest: /etc/elasticsearch/elasticsearch.yml dest: /etc/elasticsearch/elasticsearch.yml
notify: notify: restart elasticsearch
- restart elasticsearch
- name: install nginx - name: install nginx
package: package:
name: nginx name: nginx
notify: notify: restart nginx
- restart nginx
- name: configure nginx - name: configure nginx
copy: copy:
src: nginx.conf src: nginx.conf
dest: /etc/nginx/sites-available/default dest: /etc/nginx/sites-available/default
notify: notify: restart nginx
- restart nginx
- name: graylog apt repo - name: graylog apt repo
apt: apt:
...@@ -67,8 +63,7 @@ ...@@ -67,8 +63,7 @@
apt: apt:
update_cache: True update_cache: True
name: graylog-server name: graylog-server
notify: notify: restart graylog
- restart graylog
- name: configure graylog - name: configure graylog
template: template:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment