mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-06 13:23:06 +00:00
The solution is based on implementation of logging option
in Open Telekom Cloud collections.
Change-Id: Ie8b309d2aaa8da57794888848fc5414de207e54f
(cherry picked from commit 19cd6262cf)
21 lines
499 B
YAML
21 lines
499 B
YAML
---
|
|
- name: Trigger flavor listing
|
|
openstack.cloud.compute_flavor_info:
|
|
cloud: "{{ cloud }}"
|
|
sdk_log_path: "{{ sdk_log_file_path }}"
|
|
sdk_log_level: "DEBUG"
|
|
|
|
- name: Check log file presence
|
|
ansible.builtin.stat:
|
|
path: "{{ sdk_log_file_path }}"
|
|
register: sdk_log_file
|
|
|
|
- name: Assert
|
|
ansible.builtin.assert:
|
|
that:
|
|
- "sdk_log_file.stat.exists"
|
|
|
|
- name: Debug log file content
|
|
ansible.builtin.debug:
|
|
msg: "{{ lookup('ansible.builtin.file', sdk_log_file_path) }}"
|