Skip to content

refactor(playbooks): extract extra file upload logic into dedicated role#907

Open
insatomcat wants to merge 1 commit intomainfrom
uploadmkdir
Open

refactor(playbooks): extract extra file upload logic into dedicated role#907
insatomcat wants to merge 1 commit intomainfrom
uploadmkdir

Conversation

@insatomcat
Copy link
Copy Markdown
Member

@insatomcat insatomcat commented Apr 2, 2026

Create a reusable upload_extra_files role and replace duplicated upload tasks in Debian,
CentOS, Oracle Linux, and Yocto prerequisite playbooks. The role now ensures destination
directories exist before copy/unarchive and includes defaults, metadata, and README.

@eroussy
Copy link
Copy Markdown
Member

eroussy commented Apr 2, 2026

Code looks good to me, but that make a lot of duplication between all prerequisites
Can you move that into a role ?

@eroussy
Copy link
Copy Markdown
Member

eroussy commented Apr 2, 2026

Also, for your information, we have re-enable yamllint in ansible-lint
So you will likely have errors about that in the CI.
Wa have also merged cqfd -b lint and cqfd -b format

@insatomcat insatomcat changed the title playbooks: create destination directories before upload_files refactor(playbooks): extract extra file upload logic into dedicated role Apr 2, 2026
@insatomcat
Copy link
Copy Markdown
Member Author

insatomcat commented Apr 2, 2026

I updated to a dedicated role.
As to the lint checks, CI looks disabled right now.

eroussy
eroussy previously approved these changes Apr 2, 2026
@eroussy
Copy link
Copy Markdown
Member

eroussy commented Apr 2, 2026

I updated to a dedicated role. As to the lint checks, CI looks disabled right now.

Yes indeed. It should be reactivated at the end of the afternoon

@eroussy
Copy link
Copy Markdown
Member

eroussy commented Apr 2, 2026

re-open to trigger CI

Comment thread playbooks/seapath_setup_prerequisyocto.yaml Outdated
Create a reusable `upload_extra_files` role and replace duplicated upload tasks in Debian,
CentOS, Oracle Linux, and Yocto prerequisite playbooks. The role now ensures destination
directories exist before `copy`/`unarchive` and includes defaults, metadata, and README.

Signed-off-by: Florent Carli <florent.carli@rte-france.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants