Repository: ansible/ansible

Issue:
Wrong ansible_os_family reported for openSUSE Tumbleweed and openSUSE Leap
##### ISSUE TYPE

<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME

fact
##### ANSIBLE VERSION

```
ansible 2.1.1.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
```

and

```
ansible 2.2.0 (devel 6787fc70a6) last updated 2016/09/14 20:20:10 (GMT +000)
  lib/ansible/modules/core: (detached HEAD 683e5e4d1a) last updated 2016/09/14 20:20:58 (GMT +000)
  lib/ansible/modules/extras: (detached HEAD 8749c40fee) last updated 2016/09/14 20:21:07 (GMT +000)
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
```
##### OS / ENVIRONMENT

openSUSE Tumbleweed and openSUSE Leap
##### SUMMARY

Wrong `ansible_os_family` reported for openSUSE Tumbleweed and openSUSE Leap

It should really be `openSUSE` I believe. However, for openSUSE Leap, the family reported is
`Suse` so there is a bit of a confusion here. I believe both should report 'openSUSE'
##### STEPS TO REPRODUCE

```
ansible localhost -m setup -a "filter=ansible_os_family"
localhost | SUCCESS => {
    "ansible_facts": {
        "ansible_os_family": "openSUSE Tumbleweed"
    }, 
    "changed": false
}
```



Discussion:

Resolving patch:
diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py
--- a/lib/ansible/module_utils/facts.py
+++ b/lib/ansible/module_utils/facts.py
@@ -650,7 +650,7 @@ class Distribution(object):
         SLC = 'RedHat', Ascendos = 'RedHat', CloudLinux = 'RedHat', PSBM = 'RedHat',
         OracleLinux = 'RedHat', OVS = 'RedHat', OEL = 'RedHat', Amazon = 'RedHat',
         XenServer = 'RedHat', Ubuntu = 'Debian', Debian = 'Debian', Raspbian = 'Debian', Slackware = 'Slackware', SLES = 'Suse',
-        SLED = 'Suse', openSUSE = 'Suse', SuSE = 'Suse', SLES_SAP = 'Suse', Gentoo = 'Gentoo', Funtoo = 'Gentoo',
+        SLED = 'Suse', openSUSE = 'Suse', openSUSE_Tumbleweed = 'Suse', SuSE = 'Suse', SLES_SAP = 'Suse', SUSE_LINUX = 'Suse', Gentoo = 'Gentoo', Funtoo = 'Gentoo',
         Archlinux = 'Archlinux', Manjaro = 'Archlinux', Mandriva = 'Mandrake', Mandrake = 'Mandrake', Altlinux = 'Altlinux',
         Solaris = 'Solaris', Nexenta = 'Solaris', OmniOS = 'Solaris', OpenIndiana = 'Solaris',
         SmartOS = 'Solaris', AIX = 'AIX', Alpine = 'Alpine', MacOSX = 'Darwin',


Test patch:
diff --git a/test/units/module_utils/test_distribution_version.py b/test/units/module_utils/test_distribution_version.py
--- a/test/units/module_utils/test_distribution_version.py
+++ b/test/units/module_utils/test_distribution_version.py
@@ -172,6 +172,24 @@
                    'os_family': u'Suse',
                    'distribution_version': u'13.2'}
     },
+    {
+        "platform.dist": [
+            "", 
+            "", 
+            ""
+        ], 
+        "input": {
+            "/etc/os-release": "NAME=\"openSUSE Tumbleweed\"\n# VERSION=\"20160917\"\nID=opensuse\nID_LIKE=\"suse\"\nVERSION_ID=\"20160917\"\nPRETTY_NAME=\"openSUSE Tumbleweed\"\nANSI_COLOR=\"0;32\"\nCPE_NAME=\"cpe:/o:opensuse:tumbleweed:20160917\"\nBUG_REPORT_URL=\"https://bugs.opensuse.org\"\nHOME_URL=\"https://www.opensuse.org/\"\n"
+        }, 
+        "name": "openSUSE Tumbleweed 20160917", 
+        "result": {
+            "distribution_release": "NA", 
+            "distribution": "openSUSE Tumbleweed", 
+            "distribution_major_version": "NA", 
+            "os_family": "Suse", 
+            "distribution_version": "20160917"
+        }
+    },
     { # see https://github.com/ansible/ansible/issues/14837
         "name": "SLES 11.3",
         "input": {