test: fix fqcn typo

This commit is contained in:
Adrien Waksberg 2022-04-07 14:55:14 +02:00
parent 9fc6734e81
commit 8b48918e8a
4 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
--- ---
- name: restart elasticsearch - name: restart elasticsearch
systemd: ansible.builtin.service:
name: elasticsearch name: elasticsearch
state: restarted state: restarted

View file

@ -1,6 +1,6 @@
--- ---
- name: set heap size - name: set heap size
lineinfile: ansible.builtin.lineinfile:
path: /etc/elasticsearch/jvm.options path: /etc/elasticsearch/jvm.options
regexp: '^-{{ item }}' regexp: '^-{{ item }}'
line: '-{{ item }}{{ elasticsearch_heap_size }}' line: '-{{ item }}{{ elasticsearch_heap_size }}'
@ -11,7 +11,7 @@
tags: elasticsearch tags: elasticsearch
- name: copy config file - name: copy config file
copy: ansible.builtin.copy:
content: '{{ elasticsearch_full_config|to_yaml }}' content: '{{ elasticsearch_full_config|to_yaml }}'
dest: /etc/elasticsearch/elasticsearch.yml dest: /etc/elasticsearch/elasticsearch.yml
owner: root owner: root

View file

@ -1,6 +1,6 @@
--- ---
- name: install dependencies packages - name: install dependencies packages
package: ansible.builtin.package:
name: name:
- apt-transport-https - apt-transport-https
- python3-requests - python3-requests
@ -10,7 +10,7 @@
tags: elasticsearch tags: elasticsearch
- name: add repository key - name: add repository key
apt_key: ansible.builtin.apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
retries: 2 retries: 2
register: result register: result
@ -18,12 +18,12 @@
tags: elasticsearch tags: elasticsearch
- name: add repository - name: add repository
apt_repository: ansible.builtin.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
tags: elasticsearch tags: elasticsearch
- name: install package - name: install package
package: ansible.builtin.package:
name: name:
- elasticsearch - elasticsearch
retries: 2 retries: 2

View file

@ -1,13 +1,13 @@
--- ---
- name: enable and start service - name: enable and start service
systemd: ansible.builtin.service:
name: elasticsearch name: elasticsearch
state: started state: started
enabled: true enabled: true
tags: elasticsearch tags: elasticsearch
- name: wait for api is available - name: wait for api is available
wait_for: ansible.builtin.wait_for:
port: 9200 port: 9200
timeout: 10 timeout: 10
tags: elasticsearch tags: elasticsearch