diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-09-12 21:41:30 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-09-12 21:41:30 +0300 |
commit | 9aceeff0407cd60dca0acb8d3bbeb910e642cb0c (patch) | |
tree | 5e079df64b4db04c1a9dfb522dde42fc69feb1f3 /ansible/exolobe1.yml | |
parent | 666e4d937c1cbdd632031116a06000c99672de97 (diff) | |
download | ansibleness-9aceeff0407cd60dca0acb8d3bbeb910e642cb0c.tar.gz |
exolobe1: install Radicle
Sponsored-by: author
Diffstat (limited to 'ansible/exolobe1.yml')
-rw-r--r-- | ansible/exolobe1.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ansible/exolobe1.yml b/ansible/exolobe1.yml index d2dbc0c..72b27dd 100644 --- a/ansible/exolobe1.yml +++ b/ansible/exolobe1.yml @@ -182,6 +182,36 @@ - shell: | env DEBIAN_FRONTEND=noninteractive dpkg-reconfigure libdvd-pkg + + - name: "install radicle using installer" + shell: | + if [ ! -e /home/liw/.radicle/bin/rad ]; then + curl -sSf https://radicle.xyz/install | sudo -u liw bash + fi + + - name: "create liw/.radicle/keys" + file: + state: directory + path: /home/liw/.radicle/keys + owner: liw + group: liw + mode: 0755 + + - name: "install radicle private key" + copy: + content: "{{ radicle_key }}" + dest: /home/liw/.radicle/keys/radicle + owner: liw + group: liw + mode: 0600 + + - name: "install radicle public key" + copy: + content: "{{ radicle_pub }}" + dest: /home/liw/.radicle/keys/radicle.pub + owner: liw + group: liw + mode: 0644 vars: ansible_python_interpreter: /usr/bin/python3 @@ -247,3 +277,6 @@ cargo-cache \ pikchr-cli \ ytop + + radicle_key: "{{ lookup('pipe', 'pass radicle/key') }}" + radicle_pub: "{{ lookup('pipe', 'pass radicle/key.pub') }}" |