Error message has changed; scrape the new message

This commit is contained in:
Toshio Kuratomi 2015-02-02 12:05:01 -08:00
parent 97438f0039
commit bd7ac7fd7d

View file

@ -57,11 +57,12 @@
ignore_errors: true ignore_errors: true
register: result register: result
- debug: var=result.msg
- name: assert output message that database not create with old password - name: assert output message that database not create with old password
assert: assert:
that: that:
- "result.failed == true" - "result.failed == true"
- "'check login_user and login_password are correct' in result.msg" - "'check login credentials (login_user, and login_password' in result.msg"
- name: create database using user2 and new password - name: create database using user2 and new password
mysql_db: name={{ db_name }} state=present login_user={{ user_name_2 }} login_password={{ user_password_1 }} mysql_db: name={{ db_name }} state=present login_user={{ user_name_2 }} login_password={{ user_password_1 }}