Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2018 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5b964bedfe017936965f37aade5a1229 to your computer and use it in GitHub Desktop.
Save anonymous/5b964bedfe017936965f37aade5a1229 to your computer and use it in GitHub Desktop.
---
- 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