Skip to content

Commit 4b34f33

Browse files
committed
Tweak the Reductionist's ansible build so we can:
- control where the Reductionist is checked out - control the clone altogether, disable it and we'll use an existing checkout without overwriting local changeswq
1 parent 46a3162 commit 4b34f33

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

deployment/group_vars/all

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ reductionist_build_image: true
55
reductionist_src_url: "http://github.com/stackhpc/reductionist-rs"
66
# Source version.
77
reductionist_src_version: "deployment/test"
8+
# Location for the repo
9+
reductionist_repo_location: "{{ ansible_facts.env.HOME }}/reductionist-rs"
10+
# Whether to clone and checkout,
11+
# use this to disable the checkout and use an existing repo with local modifications.
12+
reductionist_clone_repo: "true"
813
# Container name.
914
reductionist_name: "reductionist"
1015
# Container image name.

deployment/site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@
373373
- name: Clone reductionist repo
374374
ansible.builtin.git:
375375
repo: "{{ reductionist_src_url }}"
376-
dest: "{{ ansible_env.HOME }}/reductionist-rs"
376+
dest: "{{ reductionist_repo_location }}"
377377
version: "{{ reductionist_src_version }}"
378-
when: reductionist_build_image | bool
378+
when: reductionist_build_image | bool and reductionist_clone_repo | bool
379379

380380
- name: Ensure reductionist image is built
381381
containers.podman.podman_image:
382382
name: "{{ reductionist_image }}"
383383
tag: "{{ reductionist_tag }}"
384-
path: "{{ ansible_env.HOME }}/reductionist-rs"
384+
path: "{{ reductionist_repo_location }}"
385385
when: reductionist_build_image | bool
386386

387387
- name: Ensure reductionist container is running

0 commit comments

Comments
 (0)