Mark Goddard 53fa0c9eaa Make explicit fact gathering timeout configurable
Implicit fact gathering performed at the beginning of a play uses the
DEFAULT_GATHER_TIMEOUT [1] config option. Invoking the setup module
directly does not use this option, instead takes a gather_timeout module
argument.

This change adds a fact_gather_timeout variable that is used when
invoking the setup module directly. The default value is given by the
DEFAULT_GATHER_TIMEOUT config option.

[1]
https://docs.ansible.com/ansible/2.4/config.html#default-gather-timeout

Change-Id: I50bcfc264b61686ffcb1341b737f4354067bd03c
2019-01-21 12:39:18 +00:00

11 lines
311 B
YAML

---
# defaults file for ironic-inspect-node
noauth_mode: true
inspection_wait_timeout: 1800
inventory_dhcp: false
inventory_dhcp_static_ip: true
inventory_dns: false
# Timeout for gathering facts.
fact_gather_timeout: "{{ lookup('config', 'DEFAULT_GATHER_TIMEOUT', on_missing='skip') | default(omit, true) }}"