diff --git a/roles/mailman/files/fedmsg-plugin-conf.py b/roles/mailman/files/fedmsg-plugin-conf.py new file mode 100644 index 0000000000..2678376e09 --- /dev/null +++ b/roles/mailman/files/fedmsg-plugin-conf.py @@ -0,0 +1,8 @@ +config = { + # These are mailing lists that we don't publish to fedmsg (because spam) + 'mailman.excluded_lists' = [ + 'scm-commits', + #'i18n-bugs',# disable this eventually + #'fonts-bugs', # disable this eventually + ], +} diff --git a/roles/mailman/tasks/main.yml b/roles/mailman/tasks/main.yml index 85d10b168a..163a1cca0c 100644 --- a/roles/mailman/tasks/main.yml +++ b/roles/mailman/tasks/main.yml @@ -122,6 +122,13 @@ when: ansible_distribution == 'RedHat' tags: mailman +- name: copy in our fedmsg-plugin conf file + copy: src=fedmsg-plugin-conf.py dest=/etc/fedmsg.d/fedmsg-plugin-conf.py + tags: + - fedmsgdconfig + - mailman + notify: restart mailman3 + - name: install packages when not using source extracts when: ansible_hostname != "lists-dev.cloud.fedoraproject.org" yum: pkg={{ item }} state=present