test: fix syntax for ansible-lint

This commit is contained in:
Adrien Waksberg 2023-06-30 16:00:00 +02:00
parent 76c3a09c25
commit bbc511e605
2 changed files with 9 additions and 15 deletions

View file

@ -1,5 +1,5 @@
---
- name: restart kibana
- name: Restart kibana
ansible.builtin.service:
name: kibana
state: restarted

View file

@ -1,15 +1,12 @@
---
- name: install dependencies packages
- name: Install dependencies packages
ansible.builtin.package:
name:
- apt-transport-https
- gpg
retries: 2
register: result
until: result is succeeded
tags: kibana
- name: add repository key
- name: Add repository key
ansible.builtin.apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
retries: 2
@ -17,31 +14,28 @@
until: result is succeeded
tags: kibana
- name: add repository
- name: Add repository
ansible.builtin.apt_repository:
repo: 'deb https://artifacts.elastic.co/packages/{{ kibana_major_version }}.x/apt stable main'
tags: kibana
- name: install package
- name: Install package
ansible.builtin.package:
name:
- kibana
retries: 2
register: result
until: result is succeeded
tags: kibana
- name: copy config file
- name: Copy config file
ansible.builtin.copy:
content: '{{ kibana_config | to_yaml }}'
dest: /etc/kibana/kibana.yml
owner: root
group: root
mode: 0644
notify: restart kibana
notify: Restart kibana
tags: kibana
- name: enable and start service
- name: Enable and start service
ansible.builtin.service:
name: kibana
state: started