diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-07 11:45:01 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-07 11:45:01 +0200 |
commit | 9ce496200793ebfea8f806164ccab56267f07989 (patch) | |
tree | 0bed58d05b12daaef8b9605870535197ed585966 | |
parent | 4781c75b2e068aa672008b8d8bb44329a57c0f68 (diff) | |
download | ansibleness-9ce496200793ebfea8f806164ccab56267f07989.tar.gz |
radicle-other-node: install node keys
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | ansible/radicle-other-node.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ansible/radicle-other-node.yml b/ansible/radicle-other-node.yml index 774fe8c..3904a22 100644 --- a/ansible/radicle-other-node.yml +++ b/ansible/radicle-other-node.yml @@ -12,6 +12,30 @@ - curl - git + - name: "create directory for Radicle keys" + file: + state: directory + path: /home/_rad/.radicle/keys + owner: _rad + group: _rad + mode: 0755 + + - name: "install Radicle private key" + copy: + content: "{{ radicle_key }}" + dest: /home/_rad/.radicle/keys/radicle + owner: _rad + group: _rad + mode: 0600 + + - name: "install Radicle public key" + copy: + content: "{{ radicle_pub }}" + dest: /home/_rad/.radicle/keys/radicle.pub + owner: _rad + group: _rad + mode: 0644 + - name: "install of upgrade Radicle using installer" shell: | # Can't use "set -o pipefail" here, because shell may not be @@ -21,6 +45,7 @@ curl -sSf https://radicle.xyz/install > radicle-install sudo -u _rad bash radicle-install + vars: sane_debian_system_version: 2 sane_debian_system_hostname: "{{ inventory_hostname }}" @@ -36,3 +61,6 @@ comment: Radicle node sshd_version: 1 + + radicle_key: "{{ lookup('pipe', 'pass radicle/radicle-other-node/key') }}" + radicle_pub: "{{ lookup('pipe', 'pass radicle/radicle-other-node/key.pub') }}" |