You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This won't work on MacOS because the os_family is actually evaluated on the Ansible target, thus taking the debian value. The lookup will then fail silently, and we end up with empty strings.
A better way to generate the start/end times would be to execute the date command on the Ansible targets and register a fact there.
The text was updated successfully, but these errors were encountered:
Nuttymoon
changed the title
The validation start/end times generation is broken on other OSs than Linux
The validation start/end times generation is broken on other OSs than Debian
Aug 24, 2023
Nuttymoon
changed the title
The validation start/end times generation is broken on other OSs than Debian
The validation start/end times generation is broken on other OSs than Linux
Aug 24, 2023
Currently, we use the pipe lookup plugin to dynamically generate the validation start/end times to add validators to Subnets:
ansible-avalanche-collection/roles/subnet/defaults/main.yml
Lines 72 to 77 in d53a31c
This won't work on MacOS because the
os_family
is actually evaluated on the Ansible target, thus taking thedebian
value. The lookup will then fail silently, and we end up with empty strings.A better way to generate the start/end times would be to execute the
date
command on the Ansible targets and register a fact there.The text was updated successfully, but these errors were encountered: