File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed 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 == ""
17
+ when : redirectionio_nginx_module_channel|length == 0
18
18
19
19
- name : Install redirection.io repository
20
20
apt_repository :
21
- repo : " deb {{ redirectionio_packages_url }}deb/{{ redirectionio_nginx_module_channel }}/{{ redirectionio_nginx_module_main_version }} {{ ansible_distribution_release }} main"
21
+ repo : >
22
+ deb {{ redirectionio_packages_url }}deb/{{ redirectionio_nginx_module_channel }}/{{ redirectionio_nginx_module_main_version }}
23
+ {{ ansible_distribution_release }} main
22
24
state : present
23
- when : redirectionio_nginx_module_channel != ""
25
+ when : redirectionio_nginx_module_channel|length > 0
24
26
25
27
- name : Update apt cache
26
28
apt :
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 == ""
26
+ when : redirectionio_nginx_module_channel|length == 0
27
27
28
28
- name : Install redirection.io repository
29
29
yum_repository :
30
30
name : redirectionio
31
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 }}"
32
+ baseurl : >
33
+ {{ redirectionio_packages_url }}rpm/{{ redirectionio_nginx_module_channel }}/{{ redirectionio_nginx_module_main_version }}/
34
+ {{ distribution_repository_name }}_{{ ansible_distribution_major_version }}
33
35
enabled : yes
34
36
gpgcheck : yes
35
37
state : present
36
- when : redirectionio_nginx_module_channel != ""
38
+ when : redirectionio_nginx_module_channel|length > 0
37
39
38
40
- name : Update yum cache
39
41
yum :
You can’t perform that action at this time.
0 commit comments