Created
February 1, 2018 12:22
-
-
Save anonymous/5b964bedfe017936965f37aade5a1229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: conformanceMain | |
tasks: | |
- name: Retrieve version from mysql | |
no_log: True | |
command: > | |
mysql --user=root --password='{{mysqlpwd}}' db | |
--batch | |
--skip-column-names | |
--execute="SELECT dbversion from SystemStatus" | |
register: versionResult | |
check_mode : no | |
changed_when: False | |
- name: Record Version Result | |
ara_record: | |
key: "versionResult" | |
value: "{{ versionResult.stdout }}" | |
register: version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment