Skip to content

Commit

Permalink
Ensure hosts cant be restarted twice
Browse files Browse the repository at this point in the history
If a host belongs to both agent and server groups, ensure it isn't
restarted twice.
  • Loading branch information
Ludwig Hansson committed Jan 26, 2025
1 parent 585209c commit 8bfbe50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
loop_var: _host_item
when:
- hostvars[_host_item].inventory_hostname == inventory_hostname
- inventory_hostname not in groups[rke2_servers_group_name]
- installed_version is defined
- installed_version != "not installed"
- rke2_version is defined
Expand Down

0 comments on commit 8bfbe50

Please sign in to comment.