chore: use FQCN for module name
This commit is contained in:
parent
a2cd107319
commit
c60e095ff3
3 changed files with 10 additions and 8 deletions
|
@ -12,6 +12,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- test: replace kitchen to molecule
|
- test: replace kitchen to molecule
|
||||||
|
- chore: use FQCN for module name
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart kibana
|
- name: restart kibana
|
||||||
systemd:
|
ansible.builtin.service:
|
||||||
name: kibana
|
name: kibana
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install dependencies packages
|
- name: install dependencies packages
|
||||||
apt:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- gpg
|
- gpg
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- 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,20 +18,21 @@
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: add repository
|
- name: add repository
|
||||||
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
|
||||||
apt:
|
ansible.builtin.package:
|
||||||
name: kibana
|
name:
|
||||||
|
- kibana
|
||||||
retries: 2
|
retries: 2
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: copy config file
|
- name: copy config file
|
||||||
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
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
tags: kibana
|
tags: kibana
|
||||||
|
|
||||||
- name: enable and start service
|
- name: enable and start service
|
||||||
systemd:
|
ansible.builtin.service:
|
||||||
name: kibana
|
name: kibana
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in a new issue