Install utility to deploy OpenStack on multiple hosts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
462 B

- hosts: compute
name: store compute node logs
tasks:
- file:
path: /tmp/logs
state: directory
mode: 0755
- file:
path: /tmp/compute
state: directory
mode: 0755
- shell:
cmd: |
source {{ ansible_user_dir }}/src/opendev.org/x/packstack/tools/copy-logs.sh
recover_default_logs
mv /tmp/logs/* /tmp/compute
mv /tmp/compute /tmp/logs
become: true