Skip to content

Commit

Permalink
rename wallet vars
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Nemirowski <[email protected]>
  • Loading branch information
Sergio Nemirowski authored and 532910 committed Jul 21, 2022
1 parent 94af2ae commit bded326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ neogo__stateroot_keep_latest_state: false
neogo__wallet_unlock: false
neogo__wallet_path: "{{ neogo__conf_dir }}/wallet.json"
neogo__wallet_pass: 'Th3r315N05p00n!'
neogo__wallet_content: ''
neogo__wallet_struct: ''

# NeoGo options
neogo__version: 'v0.78.3'
Expand Down
6 changes: 3 additions & 3 deletions tasks/wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
- name: Copy wallet
ansible.builtin.copy:
dest: "{{ neogo__wallet_path }}"
content: "{{ neogo__wallet_content | to_nice_json(ensure_ascii=False) }}"
content: "{{ neogo__wallet_struct | to_nice_json(ensure_ascii=False) }}"
owner: 'root'
group: "{{ neogo__group }}"
mode: '0660' # neogo legacy wants write permissions
when: >
(neogo__wallet_content is defined) and
(neogo__wallet_content|length > 0)
(neogo__wallet_struct is defined) and
(neogo__wallet_struct|length > 0)
notify: [ 'Restart NeoGo{{ neogo__instance }}' ]

0 comments on commit bded326

Please sign in to comment.