File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
redirectionio_packages_url : https://packages.redirection.io/
4
4
redirectionio_gpg_key_url : " {{ redirectionio_packages_url }}gpg.key"
5
+
6
+ # Version management
7
+ # This allow to choose a specific version for your infrastructure
8
+ # Channel can be stable or beta, left empty to use legacy system
9
+ redirectionio_nginx_module_channel : " "
10
+ # Main version of agent, this allow to upgrade safely your system without BC break with a new main version
11
+ redirectionio_nginx_module_main_version : 2
12
+ # Specific version for your agent, use * to use the latest available version
13
+ # Version are of the form: [timestamp]:[version]-[build], if you want a specific version like 2.0.0 you should put *:2.0.0-*
14
+ redirectionio_nginx_module_version : " *"
Original file line number Diff line number Diff line change 14
14
apt_repository :
15
15
repo : " deb {{ redirectionio_packages_url }}deb {{ ansible_distribution_release }} main"
16
16
state : present
17
+ when : redirectionio_nginx_module_channel == ""
18
+
19
+ - name : Install redirection.io repository
20
+ apt_repository :
21
+ repo : " deb {{ redirectionio_packages_url }}deb/{{ redirectionio_nginx_module_channel }}/{{ redirectionio_nginx_module_main_version }} {{ ansible_distribution_release }} main"
22
+ state : present
23
+ when : redirectionio_nginx_module_channel != ""
17
24
18
25
- name : Update apt cache
19
26
apt :
20
27
update_cache : true
21
28
22
29
- name : Install libnginx-mod-redirectionio
23
30
apt :
24
- name : libnginx-mod-redirectionio
31
+ name : " libnginx-mod-redirectionio={{ redirectionio_nginx_module_version }} "
25
32
state : present
Original file line number Diff line number Diff line change 23
23
enabled : yes
24
24
gpgcheck : yes
25
25
state : present
26
+ when : redirectionio_nginx_module_channel == ""
27
+
28
+ - name : Install redirection.io repository
29
+ yum_repository :
30
+ name : redirectionio
31
+ description : redirection.io
32
+ baseurl : " {{ redirectionio_packages_url }}rpm/{{ redirectionio_nginx_module_channel }}/{{ redirectionio_nginx_module_main_version }}/{{ distribution_repository_name }}_{{ ansible_distribution_major_version }}"
33
+ enabled : yes
34
+ gpgcheck : yes
35
+ state : present
36
+ when : redirectionio_nginx_module_channel != ""
26
37
27
38
- name : Update yum cache
28
39
yum :
29
40
update_cache : true
30
41
31
42
- name : Install libnginx-mod-redirectionio
32
43
yum :
33
- name : libnginx-mod-redirectionio
44
+ name : " libnginx-mod-redirectionio-{{ redirectionio_nginx_module_version }} "
34
45
state : present
You can’t perform that action at this time.
0 commit comments