Skip to content

Commit

Permalink
roles/nullmailer: tidy postfix variable handling
Browse files Browse the repository at this point in the history
Signed-off-by: John Helmert III <[email protected]>
  • Loading branch information
ajakk committed Aug 26, 2023
1 parent 4e666ed commit d02caf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/nullmailer/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
postfix: false
4 changes: 2 additions & 2 deletions roles/nullmailer/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Install nullmailer configuration
notify: Restart nullmailer
when: not postfix or postfix is not defined
when: not postfix
block:
- name: Install nullmailer remotes configuration
ansible.builtin.copy:
Expand Down Expand Up @@ -55,7 +55,7 @@
mode: "0644"

- name: Start and enable nullmailer
when: not postfix or postfix is not defined
when: not postfix
ansible.builtin.service:
name: nullmailer
enabled: true
Expand Down

0 comments on commit d02caf2

Please sign in to comment.