k3s-io / k3s-ansible

Apache License 2.0
2.09k stars 824 forks source link

Prevent multiple tokens in k3s.service.env #364

Closed anon-software closed 1 month ago

anon-software commented 2 months ago

If site.yml playbook is executed multiple times with different tokens, they will all accumulate in k3s.service.env. They won't do any harm because the last one wins, however it is a matter of good housekeeping to delete the old before inserting a new one.

Changes

Linked Issues

anon-software commented 2 months ago

This is not ideal. When executed again with the same token, the playbook now deletes and inserts the same line resulting in the task reporting a "change" when in fact everything effectively remained the same. I working on a fix for this this.