# tasks file for percona-toolkit
---
- name: repository | add public key
  apt_key:
    id: CD2EFD2A
    url: http://www.percona.com/downloads/RPM-GPG-KEY-percona
    state: present
  tags:
    - percona-toolkit-repository-public-key

- name: repository | add
  apt_repository:
    repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
    state: present
    update_cache: true
  with_items: percona_toolkit_repositories
  tags:
    - percona-toolkit-repository-add

- name: repository | apt-pin packages
  copy:
    src: etc/apt/preferences.d/00percona.pref
    dest: /etc/apt/preferences.d/00percona.pref
    owner: root
    group: root
    mode: 0644
  tags:
    - percona-toolkit-repository-apt-pin

# tasks file for percona-toolkit
---
- name: repository | add public key
  apt_key:
    id: 9334A25F8507EFA5
    keyserver: keyserver.ubuntu.com
    state: present
  tags:
    - percona-toolkit-repository-public-key

- name: repository | add
  apt_repository:
    repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
    state: present
    update_cache: true
  with_items: percona_toolkit_repositories
  tags:
    - percona-toolkit-repository-add

- name: repository | apt-pin packages
  copy:
    src: etc/apt/preferences.d/00percona.pref
    dest: /etc/apt/preferences.d/00percona.pref
    owner: root
    group: root
    mode: 0644
  tags:
    - percona-toolkit-repository-apt-pin

Update the Signing Key for Percona Debian and Ubuntu Packages
Update the Signing Key for Percona Debian and Ubuntu Packages
