Skip to content
Snippets Groups Projects
Commit 400922bd authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Quoting some strings

parent 1b76c733
No related branches found
No related tags found
No related merge requests found
......@@ -3,14 +3,14 @@
- name: Check Index
uri:
url: http://localhost:9200/{{ index }}
url: 'http://localhost:9200/{{ index }}'
method: HEAD
register: es_index
failed_when: no
- name: Create Index
uri:
url: http://localhost:9200/{{ index }}
url: 'http://localhost:9200/{{ index }}'
method: PUT
status_code: 200
when: es_index.status != 200
......@@ -18,7 +18,7 @@
- name: Update Mapping
uri:
url: http://localhost:9200/{{ index }}/_mapping/{{ index }}
url: 'http://localhost:9200/{{ index }}/_mapping/{{ index }}'
method: PUT
body: '{{ lookup("file", "{{ index }}.json") }}'
status_code: 200
......
......@@ -8,7 +8,7 @@
- name: Apt Repository
apt_repository:
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main'
state: present
mode: 0644
notify:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment