Skip to content

Commit

Permalink
Merge pull request #248 from RanabirChakraborty/SET-722
Browse files Browse the repository at this point in the history
SET-722 Refactor cci_worker to perform automation smoothly
  • Loading branch information
spyrkob authored May 15, 2024
2 parents 964f2a9 + 3d04b67 commit c43478f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cci_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,10 @@
- podman
- podman-docker
- jq
- git
loop_control:
loop_var: pretaskfiles

- 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 }}"
Expand All @@ -74,3 +69,10 @@
- old_releases
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}}"
8 changes: 8 additions & 0 deletions roles/cci_worker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@
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 }}"
group: "{{ cci_worker_username }}"

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

0 comments on commit c43478f

Please sign in to comment.