Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created November 2, 2017 16:50
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 dmsimard/0335667e69539c1dd22a169cbd43e616 to your computer and use it in GitHub Desktop.
Save dmsimard/0335667e69539c1dd22a169cbd43e616 to your computer and use it in GitHub Desktop.
- name: getting playbook id
hosts: localhost
gather_facts: no
tasks:
- name: Record something
ara_record:
key: key
value: something
register: recorded
- debug:
var: recorded
PLAY [getting playbook id] ********************************************************************************************
TASK [Record something] ***********************************************************************************************
ok: [localhost]
TASK [debug] **********************************************************************************************************
ok: [localhost] => {
"recorded": {
"changed": false,
"failed": false,
"key": "key",
"msg": "Data recorded in ARA for this playbook.",
"playbook_id": "a4c9dff4-f4e9-47ac-9156-9aa523dfd4cd",
"type": "text",
"value": "something"
}
}
PLAY RECAP ************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment