diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-26 23:22:18 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-26 23:22:18 +0200 |
commit | 1887e1cca6e988786c600660f2e1090bf69cbf2e (patch) | |
tree | 679b01f4007bda29e22028e3aab1181e7fd69fb7 /roles/git/tasks/main.yml | |
parent | 2cab07c316fe414f0b1061b40fd7a9ae0e0b6a9c (diff) | |
download | ansible-memzero-1887e1cca6e988786c600660f2e1090bf69cbf2e.tar.gz ansible-memzero-1887e1cca6e988786c600660f2e1090bf69cbf2e.zip |
git: add runner to mirror github projects
Diffstat (limited to 'roles/git/tasks/main.yml')
-rw-r--r-- | roles/git/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 75dec39..2d0e065 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -9,6 +9,7 @@ loop: - gitolite-cgit - runner-zola + - runner-mirror - name: Build gitolite cgit image containers.podman.podman_image: @@ -63,3 +64,22 @@ # Use 'z' to shared-ly relable selinux contexts. - "{{ DATA_ROOT }}/nginx/www:/www:z" recreate: "{{ runner_zola_build.changed }}" + +- name: Build mirror runner image + containers.podman.podman_image: + name: runner-mirror + path: "{{ DATA_ROOT }}/git/runner-mirror" + force: true + register: runner_mirror_build + +- name: Start mirror runner + containers.podman.podman_container: + name: runner-mirror + image: runner-mirror + network: "{{ NETWORK }}" + volumes: + # Use 'z' to shared-ly relable selinux contexts. + - "{{ DATA_ROOT }}/git/repos/projects.list:/projects.list:ro,z" + # Use 'Z' to privately relable selinux contexts. + - "{{ DATA_ROOT }}/git/runner-mirror/mirror.key:/mirror.key:ro,Z" + recreate: "{{ runner_mirror_build.changed }}" |