19 lines
561 B
YAML
19 lines
561 B
YAML
---
|
|
- name: Download b2-cli
|
|
ansible.builtin.get_url:
|
|
url: https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/v4.4.2/b2v4-linux
|
|
dest: /usr/local/bin/b2
|
|
mode: "0755"
|
|
|
|
- name: Authenticate b2-cli
|
|
ansible.builtin.expect:
|
|
command: /usr/local/bin/b2 account authorize
|
|
responses:
|
|
"Backblaze application key ID:":
|
|
- "{{ backblaze_auth_key_id }}"
|
|
"Backblaze application key:":
|
|
- "{{ backblaze_auth_application_key }}"
|
|
creates: /home/ipfs/.config/b2/account_info
|
|
become: true
|
|
become_user: ipfs
|