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
В текущей реализации значение по умолчанию у многих переменных задано как null (см default/main.yml). Это обстоятельство может приводить к ошибкам виды:
failed: [exporter-1] (item=None) => {"ansible_loop_var": "item", "changed": false, "item": null, "msg": "argument 'path' is of type <class 'NoneType'> and we were unable to convert to path: 'None' is not a string and conversion is not allowed"}подробнее
Таким образом нужно задать значения по умолчанию для переменных, которые имеют параметр required отличные от null, чтобы избежать проблем в случаях, когда значения не заданы пользователем.
The text was updated successfully, but these errors were encountered:
В текущей реализации значение по умолчанию у многих переменных задано как
null
(смdefault/main.yml
). Это обстоятельство может приводить к ошибкам виды:failed: [exporter-1] (item=None) => {"ansible_loop_var": "item", "changed": false, "item": null, "msg": "argument 'path' is of type <class 'NoneType'> and we were unable to convert to path: 'None' is not a string and conversion is not allowed"}
подробнееТаким образом нужно задать значения по умолчанию для переменных, которые имеют параметр
required
отличные отnull
, чтобы избежать проблем в случаях, когда значения не заданы пользователем.The text was updated successfully, but these errors were encountered: