Verified Commit 499209c1 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

postfix: Fix postfix_relayhost condition

The 'bool' filter only accepts some strings.
parent 7614beee
......@@ -73,13 +73,13 @@
- compat_maps.db
- name: install extra packages for relaying via smarthost
when: postfix_relayhost|bool
when: postfix_relayhost != ""
package:
name: cyrus-sasl
state: present
- name: install relay_passwords file
when: postfix_relayhost|bool
when: postfix_relayhost != ""
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|bool
when: postfix_relayhost != ""
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