From 7ef0b41e0ff2aff8e51da4bb60571232c8c24dc3 Mon Sep 17 00:00:00 2001 From: prameswar Date: Thu, 20 Oct 2016 21:01:18 +0530 Subject: [PATCH] corrected register variable name in ceilometer bootstrap.yml Closes-Bug: #1635322 Change-Id: I6f3351d098dfd9a7c1c3e3e8b213134284f823f9 --- ansible/roles/ceilometer/tasks/bootstrap.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/roles/ceilometer/tasks/bootstrap.yml b/ansible/roles/ceilometer/tasks/bootstrap.yml index 5fefbba262..0ceae2fd0b 100644 --- a/ansible/roles/ceilometer/tasks/bootstrap.yml +++ b/ansible/roles/ceilometer/tasks/bootstrap.yml @@ -4,8 +4,8 @@ register: mongodb_ceilometer_database run_once: true failed_when: - - "'already' not in database.stdout" - - database.stdout.split()[4] != 'connecting' + - "'already' not in mongodb_ceilometer_database.stdout" + - mongodb_ceilometer_database.stdout.split()[4] != 'connecting' delegate_to: "{{ groups['mongodb'][0] }}" when: - ceilometer_database_type == "mongodb" @@ -19,9 +19,9 @@ login_password='{{ database_password }}' name='{{ ceilometer_database_name }}'" register: mysql_ceilometer_database - changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and - (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" - failed_when: database.stdout.split()[2] != 'SUCCESS' + changed_when: "{{ mysql_ceilometer_database.stdout.find('localhost | SUCCESS => ') != -1 and + (mysql_ceilometer_database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" + failed_when: mysql_ceilometer_database.stdout.split()[2] != 'SUCCESS' run_once: True delegate_to: "{{ groups['ceilometer-api'][0] }}" when: