summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks/fetch_overcloud_logs.yml
blob: 1ab5247590e25312aec4eabb06edbee9a8019ee8 (plain)
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
---
- hosts: all
  tasks:
    - name: Archive logs
      archive:
        path:
          - /var/log
          - /etc/puppet
          - /etc/nova
          - /etc/neutron
          - /etc/heat
          - /etc/haproxy
          - /etc/glance
          - /etc/puppet
          - /etc/vpp
          - /etc/os-net-config
          - /opt/opendaylight/data/log
          - /opt/opendaylight/etc
        dest: /root/logging.tar.gz
      become: yes
    - name: Fetch /var/log/
      fetch:
        src: /root/logging.tar.gz
        dest: "{{ apex_temp_dir }}/"
      become: yes