---
- name: update apt cache
  apt:
    update_cache: yes

# The retries are for random lock failures.
- name: install packages
  ansible.builtin.package:
    name: "{{ item }}"
    state: present
  with_items:
    - graphviz # for the sn_auditor
    - heaptrack
    - jq
    - python3
    - python3-pip
    - ripgrep
    - telegraf
    - zip
  register: result
  until: result is succeeded
  retries: 20
  delay: 10

- name: install boto3
  ansible.builtin.command: pip3 install boto3 --prefix /usr
