-
Story
-
Resolution: Done
-
Major
-
RH294 - RHEL 8.4 1 20210818, RH294 - RHEL 8 1 20190531
-
None
-
en-US (English)
URL:
Reporter RHNID:
Section: -
Language: en-US (English)||||||||
Workaround:
Description: The discussion of network facts in ch10s09 "Automating Service and Network
Interface Configuration" under the subsection "Ansible Facts for Network Configuration" needs improvement. In particular:
1) All the examples use ad hoc commands. We should be showing folks how to collect and use these facts in playbooks – ad hoc commands are still semi-manual.
2) Most or all of the examples use inject_facts_as_vars names (probably because these are using ad hoc commands), which are obsolete and are expected to break by default in upcoming versions of Ansible. We should instead be using modern fact names: for example, we should use ansible_facts['interfaces'] not ansible_interfaces.