From bded326cf6650a85bee95020d2a26c7ca8800264 Mon Sep 17 00:00:00 2001 From: Sergio Nemirowski Date: Thu, 21 Jul 2022 22:44:59 +0300 Subject: [PATCH] rename wallet vars Signed-off-by: Sergio Nemirowski --- defaults/main.yml | 2 +- tasks/wallet.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 381f50f..116521a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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' diff --git a/tasks/wallet.yml b/tasks/wallet.yml index 0aebbe1..1751f7b 100644 --- a/tasks/wallet.yml +++ b/tasks/wallet.yml @@ -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 }}' ]