Skip to content

Commit 916f7f0

Browse files
committed
use our own key url
1 parent 9734d26 commit 916f7f0

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 redirection.io
1+
Copyright (c) 2018-2019 redirection.io
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ redirection.io is a Web traffic redirection manager. It provides a collection of
55
This role installs the [redirection.io](https://redirection.io/) nginx module. It supports Debian and RHEL-based Linux distributions.
66

77
Once installed, the [redirection.io](https://redirection.io/) nginx module might be used in nginx Virtualhosts, as
8-
described [in the related documentation](https://redirection.io/documentation/developer-documentation/nginx-module).
8+
described [in the related documentation](https://redirection.io/documentation/developer-documentation/nginx-module#configuration).
99

1010
## Installation
1111

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
redirectionio_packages_url: https://packages.redirection.io/
4+
redirectionio_gpg_key_url: "{{ redirectionio_packages_url }}gpg.key"

tasks/pkg-debian.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
- name: import redirection.io apt key
99
apt_key:
10-
keyserver: keyserver.ubuntu.com
11-
id: 24765BBD8E16EB44
10+
url: "{{ redirectionio_gpg_key_url }}"
1211
state: present
1312

1413
- name: Install redirection.io repository
1514
apt_repository:
16-
repo: "deb https://packages.redirection.io/deb {{ ansible_distribution_release }} main"
15+
repo: "deb {{ redirectionio_packages_url }}deb {{ ansible_distribution_release }} main"
1716
state: present
1817

1918
- name: Update apt cache

tasks/pkg-redhat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- name: Add rpm repository key
44
rpm_key:
55
state: present
6-
key: http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x24765BBD8E16EB44
6+
key: "{{ redirectionio_gpg_key_url }}"
77

88
- name: Define distribution_repository_name
99
set_fact:
@@ -19,7 +19,7 @@
1919
yum_repository:
2020
name: redirectionio
2121
description: redirection.io
22-
baseurl: "https://packages.redirection.io/rpm/{{ distribution_repository_name }}_{{ ansible_distribution_major_version }}"
22+
baseurl: "{{ redirectionio_packages_url }}rpm/{{ distribution_repository_name }}_{{ ansible_distribution_major_version }}"
2323
enabled: yes
2424
gpgcheck: yes
2525
state: present

0 commit comments

Comments
 (0)