diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-09-20 10:33:43 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-09-20 10:33:43 +0300 |
commit | 8bc42eda62aa2aa4827bdc26a37981c005d70a8f (patch) | |
tree | aa0e530c8cf3f839abbf4d606c66ae3802a05bcc /ansible/exolobe1.yml | |
parent | b2580af5e093e192a804882a862f5d6b201d1866 (diff) | |
download | ansibleness-8bc42eda62aa2aa4827bdc26a37981c005d70a8f.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 6a2184a..22251e5 100644 --- a/ansible/exolobe1.yml +++ b/ansible/exolobe1.yml @@ -212,6 +212,39 @@ owner: liw group: liw mode: 0644 + + + - 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 |