fix: only init config if missing

This commit is contained in:
Lars Wirzenius
2026-05-26 19:25:15 +03:00
parent 88320f0319
commit ea72a767d5
+3 -1
View File
@@ -121,7 +121,9 @@
- name: "set up Radicle node configuration"
when: radicle_ci_node_key is defined
shell: |
sudo -i -u ci rad config init --alias "ci-{{ inventory_hostname }}"
if [ ! -e /home/ci/.radicle/config.json ]; then
sudo -i -u ci rad config init --alias "ci-{{ inventory_hostname }}"
fi
- name: "set up Radicle node with new key"
when: radicle_ci_node_key is undefined