Verified Commit 211fc043 authored by Frederik Schwan's avatar Frederik Schwan Committed by Sven-Hendrik Haase
Browse files

fix E602 'Don’t compare to empty string'

parent eb80c0f8
......@@ -73,13 +73,13 @@
- compat_maps.db
- name: install extra packages for relaying via smarthost
when: postfix_relayhost != ""
when: postfix_relayhost | length > 0
package:
name: cyrus-sasl
state: present
- name: install relay_passwords file
when: postfix_relayhost != ""
when: postfix_relayhost | length > 0
template:
src: relay_passwords.j2
dest: /etc/postfix/relay_passwords
......@@ -91,7 +91,7 @@
- name: create user account on orion to relay with
delegate_to: orion.archlinux.org
when: postfix_relayhost != ""
when: postfix_relayhost | length > 0
user:
name: "{{ inventory_hostname_short }}"
comment: "SMTP Relay Account for {{ inventory_hostname }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment