-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.yaml
54 lines (50 loc) · 1.52 KB
/
post.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- hosts: primary
tasks:
- name: Get docker-compose ps
shell: |
~/.local/bin/docker-compose ps 2>&1 > ps.log
args:
chdir: "{{ ansible_user_dir }}/tripleo-ci-reproducer"
changed_when: true
- name: Get docker-compose services logs
shell: |
~/.local/bin/docker-compose logs --no-color {{ item }} 2>&1 > \
{{ item }}.log
args:
chdir: "{{ ansible_user_dir }}/tripleo-ci-reproducer"
changed_when: true
with_items:
- zk
- mysql
- gerrit
- logs
- launcher
- gerritconfig
- scheduler
- web
- executor
- name: Get docker-compose mergers logs
shell: |
~/.local/bin/docker-compose logs --no-color {{ item }} 2>&1 > \
{{ item }}.log
args:
chdir: "{{ ansible_user_dir }}/tripleo-ci-reproducer"
changed_when: true
with_sequence: |
start=0 count={{ ansible_processor_vcpus }} format='merger%d'
- name: Shut down docker-compose
command: ~/.local/bin/docker-compose down -v
args:
chdir: "{{ ansible_user_dir }}/tripleo-ci-reproducer"
changed_when: true
- name: Copy files from reproducer on node to log
synchronize:
src: '{{ ansible_user_dir }}/tripleo-ci-reproducer/'
dest: '{{ zuul.executor.log_root }}/tripleo-ci-reproducer/'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- "--exclude=secrets.env"
- "--exclude=*.qcow2"