
Noble has python 3.12 which is what we're trying to move our Gerrit container images to. Update testing here to ensure we're covering this python runtime before we update production. We need to change how we install jeepyb and gerritlib in testing to accomodate restrictions on global pip installs with newer python. Change-Id: I21053ee8f646d1ab4abdfd606ac935d94bcf4923
19 lines
613 B
YAML
19 lines
613 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Create logs directory
|
|
file:
|
|
state: directory
|
|
path: "{{ ansible_user_dir }}/logs"
|
|
mode: 0755
|
|
- name: Save docker log files
|
|
become: true
|
|
shell: |
|
|
docker logs tools-gerrit-1 > {{ ansible_user_dir }}/logs/gerrit.log 2>&1
|
|
docker logs tools-gerritconfig-1 > {{ ansible_user_dir }}/logs/gerritconfig.log 2>&1
|
|
- name: Copy docker log files to executor
|
|
synchronize:
|
|
mode: pull
|
|
src: "{{ ansible_user_dir }}/logs/"
|
|
dest: "{{ zuul.executor.log_root }}/container_logs/"
|
|
verify_host: true
|