From 89421407d605ad963219ccadbfd8d2d220f8e97d Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Thu, 7 Apr 2022 16:48:07 +0200 Subject: [PATCH] Consistency changes --- handlers/main.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index b09c7ed..0315064 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,35 +1,43 @@ # handlers file --- - name: new aliases - command: newaliases + command: > + newaliases when: postfix_default_database_type != 'regexp' - name: new virtual aliases - command: postmap {{ postfix_default_database_type }}:{{ postfix_virtual_aliases_file }} + command: > + postmap {{ postfix_default_database_type }}:{{ postfix_virtual_aliases_file }} when: postfix_default_database_type != 'regexp' - name: postmap sasl_passwd - command: postmap {{ postfix_default_database_type }}:{{ postfix_sasl_passwd_file }} + command: > + postmap {{ postfix_default_database_type }}:{{ postfix_sasl_passwd_file }} when: postfix_default_database_type != 'regexp' - name: postmap sender_canonical_maps - command: postmap {{ postfix_sender_canonical_maps_database_type }}:{{ postfix_sender_canonical_maps_file }} + command: > + postmap {{ postfix_sender_canonical_maps_database_type }}:{{ postfix_sender_canonical_maps_file }} when: postfix_sender_canonical_maps_database_type != 'regexp' - name: postmap recipient_canonical_maps - command: postmap {{ postfix_recipient_canonical_maps_database_type }}:{{ postfix_recipient_canonical_maps_file }} + command: > + postmap {{ postfix_recipient_canonical_maps_database_type }}:{{ postfix_recipient_canonical_maps_file }} when: postfix_recipient_canonical_maps_database_type != 'regexp' - name: postmap transport_maps - command: postmap {{ postfix_transport_maps_database_type }}:{{ postfix_transport_maps_file }} + command: > + postmap {{ postfix_transport_maps_database_type }}:{{ postfix_transport_maps_file }} when: postfix_transport_maps_database_type != 'regexp' - name: postmap sender_dependent_relayhost_maps - command: postmap {{ postfix_default_database_type }}:{{ postfix_sender_dependent_relayhost_maps_file }} + command: > + postmap {{ postfix_default_database_type }}:{{ postfix_sender_dependent_relayhost_maps_file }} when: postfix_default_database_type != 'regexp' - name: postmap generic - command: postmap {{ postfix_smtp_generic_maps_database_type }}:{{ postfix_smtp_generic_maps_file }} + command: > + postmap {{ postfix_smtp_generic_maps_database_type }}:{{ postfix_smtp_generic_maps_file }} when: postfix_smtp_generic_maps_database_type != 'regexp' - name: remove pid