~nka/ansible-role-postfix

348d30bf04a411fb1925db09daf2daade4c793a8 — Nicolas KAROLAK 2 months ago 77a3769 v1.1.4
fix dict2items
2 files changed, 3 insertions(+), 3 deletions(-)

M defaults/main.yml
M tasks/main.yml
M defaults/main.yml => defaults/main.yml +2 -2
@@ 2,8 2,8 @@

smtp_admin: 'admin+{{ ansible_hostname }}@{{ smtp_host_domain }}'
smtp_aliases:
  - root: '{{ smtp_admin }}'
  - vmail: '{{ smtp_admin }}'
  root: '{{ smtp_admin }}'
  vmail: '{{ smtp_admin }}'

smtp_packages:
  - pflogsumm

M tasks/main.yml => tasks/main.yml +1 -1
@@ 25,7 25,7 @@
- name: configure aliases
  when: smtp_admin | d(none)
  notify: rebuild aliases
  loop: '{{ smtp_aliases }}'
  loop: '{{ smtp_aliases | dict2items }}'
  lineinfile:
    path: /etc/aliases
    regexp: '^{{ item.key }}: .*$'