Refactor Reused Ansible Tasks into Roles (w/need-based delays) #15

Closed
opened 2023-08-13 21:18:20 +02:00 by so-rose · 0 comments

There's a lot of boilerplate, reuse, and just general mess in our playbooks right now.

The sustainable thing to do is to factored out into reusable roles, which can be used/reused both in this project and in other projects.

These roles should make sure to only utilize hard-coded delays (pause builtin module) when absolutely needed. Especially ex.:

  • Find a way to check if a volume needs to be unmounted and remounted due to a change during a stack deployment. This is the kind of optimization that makes the difference between needing to stop the stack or not.
  • Only if one is needed (rclone cleanup the old unmounted volume), should hard-coded pauses be used.
There's a lot of boilerplate, reuse, and just general mess in our playbooks right now. The sustainable thing to do is to factored out into reusable roles, which can be used/reused both in this project and in other projects. These roles should make sure to only utilize hard-coded delays (`pause` builtin module) when absolutely needed. Especially ex.: - Find a way to check if a volume needs to be unmounted and remounted due to a change during a stack deployment. This is the kind of optimization that makes the difference between needing to stop the stack or not. - **Only** if one is needed (rclone cleanup the old unmounted volume), should hard-coded pauses be used.
so-rose added the
deployment-usability
label 2023-08-13 21:18:20 +02:00
so-rose added this to the Refactor and Cleanup project 2023-08-13 21:18:20 +02:00
so-rose changed title from Refactor Reused Ansible Tasks into Roles to Refactor Reused Ansible Tasks into Roles (w/need-based delays) 2023-08-13 21:18:52 +02:00
so-rose pinned this 2023-08-13 22:10:18 +02:00
so-rose self-assigned this 2023-08-17 12:45:55 +02:00
so-rose started working 2023-08-17 12:46:08 +02:00
so-rose cancelled time tracking 2023-08-17 12:46:23 +02:00
so-rose added this to the v0.2.0 milestone 2023-08-17 13:08:24 +02:00
so-rose unpinned this 2023-08-21 09:10:12 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: python-support/python-support-infra#15
There is no content yet.