---

- name: Percona Tools is enabled
  ansible.builtin.command:
    cmd: percona-release enable tools release
  # changed_when:
  # register: percona__release_enable_tools

- name: APT cache is up-to-date
  ansible.builtin.apt:
    update_cache: yes
  # when: percona__release_enable_tools is changed

- name: Percona XtraBackup package is installed
  ansible.builtin.apt:
    name: "{{ percona__xtrabackup_package_name }}"
    state: present
