diff --git a/ansible/check/group_vars/all b/ansible/check/group_vars/all index ef85b41e2..df529d9c0 100644 --- a/ansible/check/group_vars/all +++ b/ansible/check/group_vars/all @@ -1,2 +1,3 @@ --- # vi:syntax=yaml +result_dir: "{{inventory_dir}}/../results" diff --git a/ansible/check/roles/controller/tasks/main.yml b/ansible/check/roles/controller/tasks/main.yml index e9a31c31e..ae1b68f53 100644 --- a/ansible/check/roles/controller/tasks/main.yml +++ b/ansible/check/roles/controller/tasks/main.yml @@ -67,4 +67,4 @@ - name: Run MySQL Tuner script script: mysqltuner.pl --nocolor register: mysql_out - + ignore_errors: yes diff --git a/ansible/check/roles/undercloud/tasks/main.yml b/ansible/check/roles/undercloud/tasks/main.yml index 2ef18e711..8496fb92d 100644 --- a/ansible/check/roles/undercloud/tasks/main.yml +++ b/ansible/check/roles/undercloud/tasks/main.yml @@ -53,3 +53,4 @@ - name: Run MySQL Tuner script script: mysqltuner.pl --nocolor register: mysql_out + ignore_errors: yes diff --git a/ansible/check/site.yml b/ansible/check/site.yml index 4da5317c6..f651219b1 100644 --- a/ansible/check/site.yml +++ b/ansible/check/site.yml @@ -39,9 +39,9 @@ become: false name: Generating bug report tasks: - - local_action: template src=templates/bug_report.j2 dest=./bug_report.log + - local_action: template src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log become: false - - local_action: template src=templates/mysql_report.j2 dest=./mysql_report.log + - local_action: template src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log become: false - - replace: dest=mysql_report.log regexp='\[([^\s+]+)' replace='' - - replace: dest=mysql_report.log regexp='\r' replace='' + - replace: dest={{result_dir}}/mysql_report.log regexp='\[([^\s+]+)' replace='' + - replace: dest={{result_dir}}/mysql_report.log regexp='\r' replace=''