Skip to content

Commit

Permalink
[repos] Make sure that the GPG keys are present before update the rep…
Browse files Browse the repository at this point in the history
…ositories
  • Loading branch information
goldyfruit committed Aug 6, 2016
1 parent 4bf85fe commit d7091c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
7 changes: 3 additions & 4 deletions tasks/repos/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
state=present

- name: Install Percona repository (CentOS)
- rpm_key:
key=https://www.percona.com/downloads/RPM-GPG-KEY-percona
state=present
package:
name={{ item }}
state=present
with_items: "{{ percona_package }}"

- rpm_key:
key=https://www.percona.com/downloads/RPM-GPG-KEY-percona
state=present
12 changes: 6 additions & 6 deletions tasks/repos/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# file: roles/galera/tasks/repos/Debian.yml
- name: Install MariaDB Galera repository (Debian)
- apt_key:
keyserver=keyserver.ubuntu.com id=0xcbcb082a1bb943db
state=present
apt_repository:
repo='deb http://mariadb.mirror.iweb.com/repo/10.1/debian jessie main'
state=present
update_cache=yes
- apt_key:
keyserver=keyserver.ubuntu.com id=0xcbcb082a1bb943db
state=present

- name: Install Percona repository (Debian)
- apt_key:
keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A
state=present
apt_repository:
repo='deb http://repo.percona.com/apt jessie main'
state=present
update_cache=yes
- apt_key:
keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A
state=present
7 changes: 3 additions & 4 deletions tasks/repos/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
yum-config-manager --enable rhel-7-server-extras-rpms

- name: Install Percona repository (RedHat)
- rpm_key:
key=https://www.percona.com/downloads/RPM-GPG-KEY-percona
state=present
package:
name={{ item }}
state=present
with_items: "{{ percona_package }}"

- rpm_key:
key=https://www.percona.com/downloads/RPM-GPG-KEY-percona
state=present

0 comments on commit d7091c2

Please sign in to comment.