-
Notifications
You must be signed in to change notification settings - Fork 10
SET-626 Olympus - Ensure Ansible updates Nginx images #237
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
base: main
Are you sure you want to change the base?
Conversation
roles/nginx/tasks/nginx_update.yml
Outdated
|
|
||
| - name: Store current nginx image value in a variable | ||
| set_fact: | ||
| nginx_latest_image_tag: "{{ local_image_tags.results[0].images[0].RepoTags[0] }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC that assumes that nginx is always the first result returned, is that correct?
If so, that works currently because it's the only remote image, but if we add a new remote image wouldn't this start failing in unexpected ways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Modified the PR accordingly.
| nginx_latest_image_tag: "{{ local_image_tags.results[0].images[0].RepoTags[0] }}" | ||
|
|
||
| - name: Pull the latest Nginx image | ||
| shell: "podman pull {{ nginx.latest_image }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably missing something, but where is the nginx.latest_image defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed adding the vars. modified it.
e1e91d6 to
07f027a
Compare
|
@RanabirChakraborty I still need to find some time to review this, but, in the meantime, can you rebase and push? |
07f027a to
7a8a11d
Compare
|
@rpelisse thanks! I have done the rebase. |
Issue: https://issues.redhat.com/browse/SET-626