Skip to content

Instantly share code, notes, and snippets.

@xeroc
Created August 20, 2019 16:34
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 xeroc/502f321aabaae0a8f41e7b759753e53a to your computer and use it in GitHub Desktop.
Save xeroc/502f321aabaae0a8f41e7b759753e53a to your computer and use it in GitHub Desktop.
---
- name: create pybitshares wallet
become_user: "{{bitshareseurope_pywallet_user}}"
become: yes
command: "{{bitshareseurope_pywallet_install_dir}}/env/bin/uptick createwallet --password '{{bitshareseurope_pywallet_passphrase | trim }}'"
args:
creates: "{{pybitshares_home}}/bitshares.sqlite"
- name: Set default node
become_user: "{{bitshareseurope_pywallet_user}}"
become: yes
command: "{{bitshareseurope_pywallet_install_dir}}/env/bin/uptick set node '{{bitshareseurope_pybitshares_node}}'"
- name: add wif keys to wallet
become_user: "{{bitshareseurope_pywallet_user}}"
become: yes
environment:
UNLOCK: "{{bitshareseurope_pywallet_passphrase | trim}}"
command: "{{bitshareseurope_pywallet_install_dir}}/env/bin/uptick addkey '{{item | trim}}'"
with_items: "{{bitshareseurope_pywallet_wifs}}"
no_log: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment