On Thu, 25 Jun 2020 23:33:20 -0700 (PDT)
CWollinger <[email protected]> wrote:

> I think the python version is the problem here.
> I see the behavior with ansible using python 3.6.x

You're probably right. I see the problem in FreeBSD too


  shell> uname -a
  FreeBSD <sanitized> 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
  
  shell> cat hosts
  test1 ansible_host=10-1
  test2 ansible_host="10-1"
  
  shell> ansible-inventory-2.7 -i hosts --list
  {
      "_meta": {
          "hostvars": {
              "test1": {
                  "ansible_host": "10-1"
              }, 
              "test2": {
                  "ansible_host": "10-1"
              }
          }
      }, 
      "all": {
          "children": [
              "ungrouped"
          ]
      }, 
      "ungrouped": {
          "hosts": [
              "test1", 
              "test2"
          ]
      }
  }
  
  shell> ansible-inventory-3.6 -i hosts --list
  {
      "_meta": {
          "hostvars": {
              "test1": {
                  "ansible_host": 9
              },
              "test2": {
                  "ansible_host": 9
              }
          }
      },
      "all": {
          "children": [
              "ungrouped"
          ]
      },
      "ungrouped": {
          "hosts": [
              "test1",
              "test2"
          ]
      }
  }

-- 
Vladimir Botka

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200626090256.542a4942%40gmail.com.

Attachment: pgpZru0w6Z5fF.pgp
Description: OpenPGP digital signature

Reply via email to