- hosts: "mailman3" tasks: - name: Force hyperkitty to populate info about the new lists we created command: docker exec mailman-web ./manage.py runjobs hourly - name: Update /etc/hosts in order to test mm3 vhosts lineinfile: state: present backrefs: yes path: /etc/hosts regexp: '^127\.0\.0\.1\s+(.*)$' line: '127.0.0.1 \1 {{ mm_site.listdomain }}' loop: "{{ mailman_sites }}" loop_control: loop_var: mm_site - name: Run selenium container include_role: name: run-selenium