If debug is enabled, provide verbose output for host discovery

In order to aid debugging, we add the '--verbose' CLI option to
the discovery command. This gives us a little more information
to work with when looking through the logs.

Change-Id: I194a1b20ceba4def8cac9591ef9bf0abf0b7f77f
This commit is contained in:
Jesse Pretorius
2018-02-06 20:42:49 +00:00
parent 0a3ce61166
commit ec4c262478

View File

@@ -21,7 +21,7 @@
# This needs to be done after Compute hosts are added.
- name: Perform a cell_v2 discover
command: "{{ _db_nova_bin }}/nova-manage cell_v2 discover_hosts"
command: "{{ _db_nova_bin }}/nova-manage cell_v2 discover_hosts {{ (debug | bool) | ternary('--verbose', '') }}"
become: yes
become_user: "{{ _db_nova_system_user_name }}"
changed_when: false