diff options
| author | 2022-03-15 20:27:46 +0000 | |
|---|---|---|
| committer | 2022-03-15 20:35:32 +0000 | |
| commit | f03c46e7843d0f95940ba29e36fd666a05756b7d (patch) | |
| tree | 48739e161dcd17fcb337c400f050de40abe63260 /roles/filebeat/tasks | |
| parent | Address ansible-lint concerns (diff) | |
De-duplicate elasticsearch apt repos
Diffstat (limited to 'roles/filebeat/tasks')
| -rw-r--r-- | roles/filebeat/tasks/main.yml | 31 | 
1 files changed, 0 insertions, 31 deletions
diff --git a/roles/filebeat/tasks/main.yml b/roles/filebeat/tasks/main.yml index 41d44bd..d3001bb 100644 --- a/roles/filebeat/tasks/main.yml +++ b/roles/filebeat/tasks/main.yml @@ -1,39 +1,8 @@  --- -- name: Install GPG -  package: -    name: gpg -    state: present -  tags: -    - role::filebeat - -- name: Install Elasticsearch signing key -  # noqa command-instead-of-module -  shell: >- -    set -o pipefail && wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | -    gpg --yes --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg -  args: -    creates: /usr/share/keyrings/elasticsearch-keyring.gpg -  tags: -    - role::filebeat - -- name: Add Elasticsearch repository to apt -  copy: -    content: >- -      deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] -      https://artifacts.elastic.co/packages/8.x/apt stable main -    dest: /etc/apt/sources.list.d/elastic-8.x.list -    owner: root -    group: root -    mode: 0644 -  tags: -    - role::filebeat -  register: add_filebeat_repo -  - name: Install Filebeat    apt:      pkg: filebeat      state: present -    update_cache: "{{ add_filebeat_repo.changed }}"    tags:      - role::filebeat  |