Uploaded image for project: 'openstack-k8s'
  1. openstack-k8s
  2. OSPK8-638

dev-tools ocp install/ Configure inventory variables can fail on ansible_fqdn not defined

XMLWordPrintable

    • False
    • None
    • False

      Failure on ocp install:
      TASK [Configure inventory variables] ************************************************************************************************************************
      Friday 04 November 2022 21:36:43 +0000 (0:00:00.025) 0:00:47.901 *******
      fatal: [localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: {{ 'clock.redhat.com' if 'redhat.com' in ansible_fqdn else 'pool.ntp.org'
      }}: 'ansible_fqdn' is undefined"}

      although ansible setup module shows that that variable exists :

      [root@titan131 ansible]# ansible localhost -m setup |grep ansible_fqdn
      "ansible_fqdn": "titan131.lab.eng.tlv2.redhat.com",

      Maybe we should enable gathering facts to true to reolve this ?
      *if it won't break anything else ..:
      https://github.com/pinikomarov/osp-director-dev-tools/blob/hybrid_dpdk_sriov_titan131-3-5/ansible/ocp_ai_prep.yaml#L3-L4

              Unassigned Unassigned
              pkomarov pini komarov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: