about summary refs log tree commit diff
path: root/ansible/roles/sourcehut/tasks
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-18 21:32:36 +0200
committermakefunstuff <[email protected]>2024-07-18 21:32:36 +0200
commit806607a58675a3f28694602b16762f9cdd5dac60 (patch)
treea0fc3b03159e608e115de68785192d2c54480d28 /ansible/roles/sourcehut/tasks
parent07822ea3f2239cf9cd3335ad2d7fb0aab7a3e1dc (diff)
downloadk3s-lab-806607a58675a3f28694602b16762f9cdd5dac60.tar.gz
ansible
Diffstat (limited to '')
-rw-r--r--ansible/roles/sourcehut/tasks/main.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/sourcehut/tasks/main.yml b/ansible/roles/sourcehut/tasks/main.yml
new file mode 100644
index 0000000..047ac06
--- /dev/null
+++ b/ansible/roles/sourcehut/tasks/main.yml
@@ -0,0 +1,33 @@
+---
+- name: Clone SourceHut repositories
+  git:
+    repo: '{{ item }}'
+    dest: '/opt/sourcehut/{{ item | basename }}'
+  with_items:
+    - https://git.sr.ht/~sircmpwn/builds.sr.ht
+    - https://git.sr.ht/~sircmpwn/dispatch.sr.ht
+    - https://git.sr.ht/~sircmpwn/git.sr.ht
+    - https://git.sr.ht/~sircmpwn/hg.sr.ht
+    - https://git.sr.ht/~sircmpwn/lists.sr.ht
+    - https://git.sr.ht/~sircmpwn/meta.sr.ht
+    - https://git.sr.ht/~sircmpwn/mle.sr.ht
+    - https://git.sr.ht/~sircmpwn/patches.sr.ht
+    - https://git.sr.ht/~sircmpwn/paste.sr.ht
+    - https://git.sr.ht/~sircmpwn/todo.sr.ht
+
+- name: Configure SourceHut services
+  shell: |
+    cd /opt/sourcehut/{{ item | basename }}
+    docker-compose up -d
+  with_items:
+    - https://git.sr.ht/~sircmpwn/builds.sr.ht
+    - https://git.sr.ht/~sircmpwn/dispatch.sr.ht
+    - https://git.sr.ht/~sircmpwn/git.sr.ht
+    - https://git.sr.ht/~sircmpwn/hg.sr.ht
+    - https://git.sr.ht/~sircmpwn/lists.sr.ht
+    - https://git.sr.ht/~sircmpwn/meta.sr.ht
+    - https://git.sr.ht/~sircmpwn/mle.sr.ht
+    - https://git.sr.ht/~sircmpwn/patches.sr.ht
+    - https://git.sr.ht/~sircmpwn/paste.sr.ht
+    - https://git.sr.ht/~sircmpwn/todo.sr.ht
+