unixPb: run the updatepackage.sh script via dockerhost playbook #3152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ref #2962
Ive added a job in AWX to run the updatepackage.sh script regularly (will initiate it when this gets merged). This is better than it being in a cron job since AWX will pull updates to the script. It will run tasks in the
dockerhost.yml
playbook tagged withupdateContainers
which only corresponds to the task I have added in this pr. Thenever
tag ensures that the task will only run when specified (by use of theupdateContainers
tag) and not as part of the entire playbook.This is still a draft because though this script updates the containers, it does not install new packages if needed, so I need to think of a clean way to do that.
My last resort is to add strings in the
updatepackages.sh
script which contain any new package that needs to be installed on the containers (sort of how we do in the Common role but as bash strings) but im certain theres a better way to do this.Any thoughts @sxa @steelhead31