X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/e950b50ac5f0ac5f5418554f260ab7916ea116bc..eb5ab9a3ffe8dc85874301218bbfdde5ea64ffcf:/roles/email/tasks/mailman.yml?ds=sidebyside diff --git a/roles/email/tasks/mailman.yml b/roles/email/tasks/mailman.yml index b9c177e..0988edb 100644 --- a/roles/email/tasks/mailman.yml +++ b/roles/email/tasks/mailman.yml @@ -16,6 +16,7 @@ args: chdir: /usr/lib/mailman/Mailman changed_when: False + failed_when: mailman_patched.rc == 2 register: mailman_patched - name: check if all the files have the right checksums to be patched shell: 'echo "{{item}}" | sha256sum -c' @@ -32,10 +33,13 @@ - Cgi/listinfo.py - Cgi/subscribe.py - Captcha.py + when: mailman_patched.rc != 0 - name: install patched templates copy: dest: /etc/mailman/{{item}} src: files/mailman-patched/{{item}} loop: - de/listinfo.html + - de/subscribeack.txt - en/listinfo.html + - en/subscribeack.txt