main.yml 572 B

123456789101112131415161718
  1. ---
  2. # Configure admin server to be able to create chain-spec file and subkey commands
  3. - name: Copy bash_profile content
  4. shell: cat ~/.bash_profile
  5. register: bash_data
  6. - name: Copy bash_profile content to bashrc for non-interactive sessions
  7. blockinfile:
  8. block: "{{ bash_data.stdout }}"
  9. path: ~/.bashrc
  10. insertbefore: BOF
  11. - name: Get dependencies for subkey
  12. shell: curl https://getsubstrate.io -sSf | bash -s -- --fast
  13. - name: Install subkey
  14. shell: cargo install --force subkey --git https://github.com/paritytech/substrate --version 2.0.1 --locked