From 65839f8fa1debe10aa69d5067f38a5fe90c40186 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 7 Feb 2024 12:50:44 +0200 Subject: radicle-other-node: seed repositories Signed-off-by: Lars Wirzenius Sponsored-by: author --- ansible/radicle-other-node.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ansible/radicle-other-node.yml b/ansible/radicle-other-node.yml index 00abce7..afd263f 100644 --- a/ansible/radicle-other-node.yml +++ b/ansible/radicle-other-node.yml @@ -92,6 +92,16 @@ rad node connect "{{ item.nid }}@{{ item.host }}:{{ item.port }}" EOF sudo -u _rad bash -ex connect.sh + + - name: "seed Radicle repositories" + with_items: "{{ radicle_repositories }}" + shell: | + cat <<'EOF' > seed.sh + export PATH="$HOME/.radicle/bin:$PATH" + rad node status + rad seed "{{ item.rid }}" + EOF + sudo -u _rad bash -ex seed.sh vars: sane_debian_system_version: 2 sane_debian_system_hostname: "{{ inventory_hostname }}" @@ -114,3 +124,6 @@ - nid: z6MkfXa53s1ZSFy8rktvyXt5ADCojnxvjAoQpzajaXyLqG5n host: radicle.liw.fi port: 8776 + radicle_repositories: + - rid: "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" + - rid: "rad:zZnk3hS8C3WAhnv7mWcCUToCqpBs" -- cgit v1.2.1