File: post.yaml

package info (click to toggle)
python-diskimage-builder 3.39.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,704 kB
  • sloc: sh: 7,474; python: 6,454; makefile: 37
file content (13 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
- hosts: all
  tasks:

    - name: Check logs directory exists
      stat: path='{{ ansible_user_dir }}/logs/'
      register: check_path

    - name: Copy log files from {{ ansible_user_dir }} on node
      synchronize:
        src: '{{ ansible_user_dir }}/logs/'
        dest: '{{ zuul.executor.log_root }}/logs'
        mode: pull
      when: check_path.stat.exists == true