Skip to content

Fix SRAM conditional container restart#708

Draft
mrvanes wants to merge 3 commits into
mainfrom
fix/redis-container
Draft

Fix SRAM conditional container restart#708
mrvanes wants to merge 3 commits into
mainfrom
fix/redis-container

Conversation

@mrvanes

@mrvanes mrvanes commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mrvanes mrvanes self-assigned this Jul 7, 2026
@mrvanes
mrvanes requested a review from EricvanSchaik July 7, 2026 14:40
@mrvanes
mrvanes force-pushed the fix/redis-container branch from c2ffc24 to 94f03fd Compare July 9, 2026 14:19
@mrvanes mrvanes changed the title Fix redis conditional container restart Fix SRAM conditional container restart Jul 13, 2026
Comment thread roles/sram_ldap/tasks/main.yml Outdated
name: "sram-ldap"
restart: true
state: started
when: ldap_container is success and ldap_container is not change

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't you want to restart the ldap container when it is changed? Not when it is not changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm... dit komt letterlijk zo uit de invite rol, maar je hebt wel een punt?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Misschien dat de container sowieso wordt herstart in die andere taak als er een nieuwe image beschikbaar is, en dat je hiermee zorgt dat een container ook herstart wordt als er geen nieuwe image is? Zodat nieuwe ansible configuratie altijd in de containers doorkomen bij een deploy?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@EricvanSchaik @mrvanes
volgens mij herstart docker_container task zelf containers als er iets wijzigt

- name: Create and start the server container
  community.docker.docker_container:

en de restart in de handler doe je dan als wij iets wijzigen aan bv /opt/openconext/invite/configfile

we hadden eerder nl dubbele restarts

ik heb niet echt een handige plek gevonden voor een comment omdat we dit op 20 plekken zo doen

@mrvanes
mrvanes marked this pull request as draft July 13, 2026 15:06
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.

3 participants