ignore permutation of targets

This commit is contained in:
histausse 2021-09-22 15:10:43 +02:00
parent 0da51a9b49
commit b4a4eda55b
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -99,6 +99,7 @@
- name: Add the node to the targets
set_fact:
server_target: "[{{ server_target[0] | combine({'targets': [lan_address]}, list_merge='append_rp') }}]"
when: lan_address not in server_target.0.targets
- name: Put the new target list
copy: