Skip to content

Commit f36b4c9

Browse files
committed
Fix lint
1 parent f377ff8 commit f36b4c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tasks/pkg-debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
apt_repository:
1515
repo: "deb {{ redirectionio_packages_url }}deb {{ ansible_distribution_release }} main"
1616
state: present
17-
when: redirectionio_apache_module_channel == ""
17+
when: redirectionio_apache_module_channel|length == 0
1818

1919
- name: Install redirection.io repository
2020
apt_repository:
2121
repo: "deb {{ redirectionio_packages_url }}deb/{{ redirectionio_apache_module_channel }}/{{ redirectionio_apache_module_main_version }} {{ ansible_distribution_release }} main"
2222
state: present
23-
when: redirectionio_apache_module_channel != ""
23+
when: redirectionio_apache_module_channel|length > 0
2424

2525
- name: Update apt cache
2626
apt:

tasks/pkg-redhat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
enabled: yes
2424
gpgcheck: yes
2525
state: present
26-
when: redirectionio_apache_module_channel == ""
26+
when: redirectionio_apache_module_channel|length == 0
2727

2828
- name: Install redirection.io repository
2929
yum_repository:
@@ -33,7 +33,7 @@
3333
enabled: yes
3434
gpgcheck: yes
3535
state: present
36-
when: redirectionio_apache_module_channel != ""
36+
when: redirectionio_apache_module_channel|length > 0
3737

3838
- name: Update yum cache
3939
yum:

0 commit comments

Comments
 (0)