Created
October 3, 2017 19:56
-
-
Save dymurray/fd4589e911706628f62d499e48562724 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: 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