Skip to content

Commit

Permalink
SET-722 Refactor cci_worker to perform automation smoothly
Browse files Browse the repository at this point in the history
  • Loading branch information
RanabirChakraborty committed May 15, 2024
1 parent 964f2a9 commit f65d20f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cci_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,25 @@
- podman
- podman-docker
- jq
- git
loop_control:
loop_var: pretaskfiles

tasks:
- ansible.builtin.include_role:
name: "{{ taskfiles }}"
with_items:
- cci_worker
loop_control:
loop_var: taskfiles

post_tasks:
- name: "Ensure jaegertracing docker image is downloaded for tests"
containers.podman.podman_image:
name: "quay.io/jaegertracing/all-in-one:latest"
become: yes
become_user: "{{cci_worker_username}}"

tasks:
- ansible.builtin.include_role:
name: "{{ taskfiles }}"
with_items:
Expand Down
7 changes: 7 additions & 0 deletions roles/cci_worker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@
owner: "{{ cci_worker_username }}"
group: "{{ cci_worker_username }}"

- name: "Create maven settings directory"
ansible.builtin.file:
path: "/home/{{ cci_worker_username }}/.m2/"
state: directory
mode: "0755"
owner: "{{ cci_worker_username }}"

- name: "Configure Maven settings.xml"
ansible.builtin.template:
src: templates/settings.xml.j2
Expand Down

0 comments on commit f65d20f

Please sign in to comment.