browbeat/ansible/logs/get-overcloud-logs.yml
Masco Kaliyamoorthy 461b016f13 use tripleo-ansible-inventry to generate hosts
Change-Id: I54d6eba518910e6651758bc7d46624bafacaef6c
2021-03-30 21:19:14 +05:30

58 lines
1009 B
YAML

---
- hosts: Controller
remote_user: "{{host_remote_user}}"
vars_files:
- ../install/group_vars/all.yml
vars:
services:
- nova
- neutron
- ceilometer
- cinder
- gnocchi
- keystone
- heat
become: true
tags:
- controller
pre_tasks:
- name: Create logs directory
file:
path: /home/{{host_remote_user}}/{{ansible_hostname}}
state: directory
roles:
- osp_version
- common
- glance
- mysql
- rabbitmq
- httpd
- openvswitch
- opendaylight
- common
- fetch-logs
- hosts: Compute
remote_user: "{{host_remote_user}}"
vars_files:
- ../install/group_vars/all.yml
vars:
services:
- nova
- neutron
- ceilometer
- libvirt
become: true
tags:
- compute
pre_tasks:
- name: Create logs directory
file:
path: /home/{{host_remote_user}}/{{ansible_hostname}}
state: directory
roles:
- common
- openvswitch
- fetch-logs