Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-5199

RH294-89: ch10s09 Network facts discussion needs improvement

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • RH294 - RHEL 8.4 1 20210818, RH294 - RHEL 8 1 20190531
    • RH294
    • 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.

            rht-sbonnevi Steven Bonneville
            rht-sbonnevi Steven Bonneville
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: