Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET-722 Refactor cci_worker to perform automation smoothly #248

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do all of those become post_tasks? why?

- 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 }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add group ownership as well group: "{{ cci_worker_username }}"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done!

group: "{{ cci_worker_username }}"

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