diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-13 15:22:29 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-13 15:22:29 +0200 |
commit | a423fff937cbe1a59462dfe8f92e2be2c42fe7fc (patch) | |
tree | c164044d2192fb253cf1c605857a5874bdce031f | |
parent | 3f7e7c8905cc7d2c321bf82d3d22f36ae318f0dc (diff) | |
download | debian-ansible-a423fff937cbe1a59462dfe8f92e2be2c42fe7fc.tar.gz |
fix(radicle_node): install connect script so that _rad can run it
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | roles/radicle_node/tasks/main.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/radicle_node/tasks/main.yml b/roles/radicle_node/tasks/main.yml index 0dd3edb..9741aab 100644 --- a/roles/radicle_node/tasks/main.yml +++ b/roles/radicle_node/tasks/main.yml @@ -156,18 +156,20 @@ os.rename(filename, filename + ".bak") with open(filename, "w") as f: f.write(json.dumps(config, indent=4)) - dest: radicle-perma-connect + dest: /home/_rad/radicle-perma-connect + owner: _rad + group: _rad mode: 0755 - name: "connect to other Radicle nodes" when: radicle_node_connections is defined with_items: "{{ radicle_node_connections }}" shell: | - cat <<'EOF' > connect.sh + cat <<'EOF' > /tmp/connect.sh export PATH="$HOME/.radicle/bin:$PATH" ./radicle-perma-connect "{{ item.nid }}@{{ item.host }}:{{ item.port }}" EOF - sudo -u _rad bash -ex connect.sh + sudo -u _rad -i bash -ex /tmp/connect.sh - name: "(re)start systemd unit for Radicle node" systemd: |