/home/zuul/src/opendev.org/opendev/system-config/playbooks/service-lists3.yaml
Execution
Date 08 Apr 2026 21:40:57 +0000
Duration 00:01:49.55
Controller bridge99.opendev.org
User root
Versions
Ansible 2.15.13
ara 1.7.5 / 1.7.5
Python 3.10.12
Summary
1 Hosts
156 Tasks
154 Results
1 Plays
20 Files
0 Records

File: /home/zuul/src/opendev.org/opendev/system-config/playbooks/roles/mailman3/handlers/restart_mailman.yaml

- name: mailman check for running containers
  command: pgrep -f uwsgi
  ignore_errors: yes
  register: uwsgi_pids

- name: mailman restart containers if running
  # Also makes sure the containers weren't just restarted by an image update
  when: uwsgi_pids.rc == 0 and "is up-to-date" in mailman_dcup.stderr
  block:
    - name: down containers
      shell:
        cmd: docker-compose -f /etc/mailman-compose/docker-compose.yaml down
    - name: up containers
      shell:
        cmd: docker-compose -f /etc/mailman-compose/docker-compose.yaml up -d