test: fix syntax for ansible-lint
This commit is contained in:
parent
76c3a09c25
commit
bbc511e605
2 changed files with 9 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart kibana
|
- name: Restart kibana
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: kibana
|
name: kibana
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: install dependencies packages
|
- name: Install dependencies packages
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- gpg
|
- gpg
|
||||||
retries: 2
|
|
||||||
register: result
|
|
||||||
until: result is succeeded
|
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: add repository key
|
- name: Add repository key
|
||||||
ansible.builtin.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
|
||||||
|
@ -17,31 +14,28 @@
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: add repository
|
- name: Add repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: 'deb https://artifacts.elastic.co/packages/{{ kibana_major_version }}.x/apt stable main'
|
repo: 'deb https://artifacts.elastic.co/packages/{{ kibana_major_version }}.x/apt stable main'
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: install package
|
- name: Install package
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- kibana
|
- kibana
|
||||||
retries: 2
|
|
||||||
register: result
|
|
||||||
until: result is succeeded
|
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: copy config file
|
- name: Copy config file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
content: '{{ kibana_config|to_yaml }}'
|
content: '{{ kibana_config | to_yaml }}'
|
||||||
dest: /etc/kibana/kibana.yml
|
dest: /etc/kibana/kibana.yml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart kibana
|
notify: Restart kibana
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: enable and start service
|
- name: Enable and start service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: kibana
|
name: kibana
|
||||||
state: started
|
state: started
|
||||||
|
|
Loading…
Reference in a new issue