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: ansible.builtin.service:
name: filebeat name: filebeat
state: restarted state: restarted

View file

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

View file

@ -1,5 +1,5 @@
--- ---
- name: install dependencies packages - name: Install dependencies packages
ansible.builtin.package: ansible.builtin.package:
name: name:
- apt-transport-https - apt-transport-https
@ -8,7 +8,7 @@
until: result is succeeded until: result is succeeded
tags: filebeat tags: filebeat
- 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
@ -16,12 +16,12 @@
until: result is succeeded until: result is succeeded
tags: filebeat tags: filebeat
- name: add repository - name: Add repository
ansible.builtin.apt_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 tags: filebeat
- name: install package - name: Install package
ansible.builtin.package: ansible.builtin.package:
name: filebeat name: filebeat
retries: 2 retries: 2
@ -29,17 +29,17 @@
until: result is succeeded until: result is succeeded
tags: filebeat tags: filebeat
- name: copy config file - name: Copy config file
ansible.builtin.copy: ansible.builtin.copy:
content: '{{ filebeat_config|to_yaml }}' content: "{{ filebeat_config | to_yaml }}"
dest: /etc/filebeat/filebeat.yml dest: /etc/filebeat/filebeat.yml
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
notify: restart filebeat notify: Restart filebeat
tags: filebeat tags: filebeat
- name: enable and start service - name: Enable and start service
ansible.builtin.service: ansible.builtin.service:
name: filebeat name: filebeat
state: started state: started