geerlingguy/ansible-role-filebeat

Role fails to install Filebeat 8.x

strophy opened this issue · 1 comments

This role throws errors for me on the Add Filebeat repository step under Ubuntu:

fatal: [seed-1]: FAILED! => changed=false 
  invocation:
    module_args:
      codename: null
      filename: null
      install_python_apt: true
      mode: null
      repo: deb https://artifacts.elastic.co/packages/8.3.3/apt stable main
      state: present
      update_cache: true
      update_cache_retries: 5
      update_cache_retry_max_delay: 12
      validate_certs: true
  msg: 'Failed to update apt cache: E:The repository ''https://artifacts.elastic.co/packages/8.3.3/apt stable Release'' does not have a Release file.'

According to the Filebeat docs, the correct string to use for this is probably:

deb https://artifacts.elastic.co/packages/8.x/apt stable main

Sorry, just saw this is by design. I should have read that this var Controls the major version so I should be writing 8.x and not 8.3.3.