Skip to content

Commit

Permalink
chore: improve methods to download polkachu playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Catopish committed Dec 25, 2024
1 parent 2d64b4a commit b459cb9
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions roles/setup_install_penumbra/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,28 @@
group: "{{ default_user }}"
when: not cometbft_dir.stat.exists

#NOTE: i dont know if this will work, but the wget cmd that commented out below will be working
- name: Download Polkachu Cometbft snapshot
ansible.builtin.shell:
cmd: "wget -O {{ default_database_path }}/node0/penumbra_{{ polkachu_version }}.tar.lz4 https://snapshots.polkachu.com/snapshots/penumbra/penumbra_{{ polkachu_version }}.tar.lz4 --inet4-only"
become: True
ansible.builtin.get_url:
url: "https://snapshots.polkachu.com/snapshots/penumbra/penumbra_{{ polkachu_version }}.tar.lz4"
dest: "{{ default_database_path }}/node0/penumbra_{{ polkachu_version }}.tar.lz4"
owner: "{{ default_user }}"
group: "{{ default_user }}"
mode: "0640"
force: true
become: true
become_user: "{{ default_user }}"
when: not cometbft_dir.stat.exists
# when: ansible_local['noderole']['node']['version'] != penumbra_version
args:
executable: /bin/bash

# - name: Download Polkachu Cometbft snapshot
# ansible.builtin.shell:
# cmd: "wget -O {{ default_database_path }}/node0/penumbra_{{ polkachu_version }}.tar.lz4 https://snapshots.polkachu.com/snapshots/penumbra/penumbra_{{ polkachu_version }}.tar.lz4 --inet4-only"
# become: True
# become_user: "{{ default_user }}"
# when: not cometbft_dir.stat.exists
# # when: ansible_local['noderole']['node']['version'] != penumbra_version
# args:
# executable: /bin/bash

- name: Extract and decompress Polkachu snapshot
ansible.builtin.shell:
Expand Down

0 comments on commit b459cb9

Please sign in to comment.