Commit 77fa12fa authored by Jürgen Haas's avatar Jürgen Haas

ansible-playbooks/general#85 Linting [skip-ci]

parent a6dcca85
......@@ -3,17 +3,17 @@
- name: Add Elasticsearch to Boot-List
systemd:
name='elasticsearch'
state='started'
daemon_reload=yes
enabled=yes
name: elasticsearch
state: started
daemon_reload: yes
enabled: yes
- name: Start Elasticsearch
service:
name='elasticsearch'
state='started'
name: elasticsearch
state: started
- name: Restart Elasticsearch
service:
name='elasticsearch'
state='restarted'
name: elasticsearch
state: restarted
......@@ -6,7 +6,7 @@
url: http://localhost:9200/{{ index }}
method: HEAD
register: es_index
failed_when: false
failed_when: no
- name: Create Index
uri:
......@@ -14,7 +14,7 @@
method: PUT
status_code: 200
when: es_index.status != 200
failed_when: false
failed_when: no
- name: Update Mapping
uri:
......@@ -23,4 +23,4 @@
body: '{{ lookup("file", "{{ index }}.json") }}'
status_code: 200
body_format: json
failed_when: false
failed_when: no
Markdown is supported
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