Skip to content

Instantly share code, notes, and snippets.

@dymurray
Created October 3, 2017 19:56
Show Gist options
  • Save dymurray/fd4589e911706628f62d499e48562724 to your computer and use it in GitHub Desktop.
Save dymurray/fd4589e911706628f62d499e48562724 to your computer and use it in GitHub Desktop.
- hosts: localhost
tasks:
- name: "Generate keycloak auth token"
uri:
url: "http://localhost:8545"
method: POST
body: "{\"jsonrpc\":\"2.0\",\"method\":\"eth_accounts\",\"params\":[],\"id\":1}"
validate_certs: no
register: response
until: response.status == 200
retries: 600
delay: 2
- debug:
msg: "here: {{response.json.result}}"
- set_fact:
accounts: "{{response.json.result}}"
- debug:
with_items:
- "{{ accounts }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment