main.yml 698 B

12345678910111213141516171819202122
  1. ---
  2. # Configure build server to be able to create chain-spec file and subkey commands
  3. - name: Get dependencies for subkey
  4. shell: curl https://getsubstrate.io -sSf | bash -s -- --fast
  5. - name: Install subkey
  6. shell: cargo install --force subkey --git https://github.com/paritytech/substrate --version 2.0.1 --locked
  7. # Run in async fashion for max duration of 1 hr
  8. async: 3600
  9. poll: 0
  10. register: install_result
  11. - name: Check whether install subkey task has finished
  12. async_status:
  13. jid: '{{ install_result.ansible_job_id }}'
  14. register: job_result
  15. until: job_result.finished
  16. # Max number of times to check for status
  17. retries: 36
  18. # Check for the status every 100s
  19. delay: 100