Ensure that first/last host detection is deterministic
With ansible-core 2.16 a breaking changes landed [1] to some filters making their result returned in arbitrary order. With that, we were relying on them to always return exactly same ordered lists. With that we need to ensure that we still have determenistic behaviour where this is important. [1] https://github.com/ansible/ansible/issues/82554 Change-Id: Ic54eede6fa7de1fd7f03c9519a6239aa11489b5d
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
_skyline_is_first_play_host: >-
|
||||
{{
|
||||
(skyline_services['skyline-api']['group'] in group_names and inventory_hostname == (
|
||||
groups[skyline_services['skyline-api']['group']] | intersect(ansible_play_hosts)) | first) | bool
|
||||
groups[skyline_services['skyline-api']['group']] | select('in', ansible_play_hosts)) | first) | bool
|
||||
}}
|
||||
|
||||
skyline_package_list: |-
|
||||
|
||||
Reference in New Issue
Block a user