Commit b665e425 authored by Phillip Smith (fukawi2)'s avatar Phillip Smith (fukawi2)
Browse files

fix deprecation warning when using bare variable in conditonal

parent 096aac93
......@@ -73,13 +73,13 @@
- compat_maps.db
- name: install extra packages for relaying via smarthost
when: postfix_relayhost
when: postfix_relayhost|bool
package:
name: cyrus-sasl
state: present
- name: install relay_passwords file
when: postfix_relayhost
when: postfix_relayhost|bool
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|bool
user:
name: "{{inventory_hostname_short}}"
comment: "SMTP Relay Account for {{inventory_hostname}}"
......
Markdown is supported
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