chore: fix syntax for ansible-lint

This commit is contained in:
Adrien Waksberg 2023-06-29 16:12:17 +02:00
parent 7ce2eada75
commit dd540afdfb
3 changed files with 11 additions and 11 deletions

View file

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

View file

@ -6,7 +6,7 @@ galaxy_info:
company: Adrien Waksberg
description: Install and configure filebeat
license: Apache2
min_ansible_version: 2.8
min_ansible_version: "2.9"
platforms:
- name: Debian

View file

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