From ec4c2624783328dc755a5090e4843997e630dc3e Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 6 Feb 2018 20:42:49 +0000 Subject: [PATCH] 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 --- tasks/nova_db_post_setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/nova_db_post_setup.yml b/tasks/nova_db_post_setup.yml index b29ff4e8..d6d4289c 100644 --- a/tasks/nova_db_post_setup.yml +++ b/tasks/nova_db_post_setup.yml @@ -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