[DNG] Ansible and Devuan (bug or feature?)

2017-07-20 Thread Emilien Mantel

Hi,

I'm working to adapt my (debian) ansible roles with devuan.

However, i have some problems with facts (setup module).


In Debian Jessie:

"ansible_distribution": "Debian",
"ansible_distribution_major_version": "8",
"ansible_distribution_release": "jessie",
"ansible_distribution_version": "8.7"
"ansible_os_family": "Debian"

In Ubuntu:

"ansible_distribution": "Ubuntu",
"ansible_distribution_major_version": "16",
"ansible_distribution_release": "xenial",
"ansible_distribution_version": "16.04"
"ansible_os_family": "Debian"

In Devuan Jessie (1.0 RC) with vagrant:

"ansible_distribution": "Devuan GNU/Linux",
"ansible_distribution_major_version": "NA",
"ansible_distribution_release": "NA",
"ansible_distribution_version": "1 (jessie)",
"ansible_os_family": "Devuan GNU/Linux"

In Devuan, IMHO should be:

"ansible_distribution": "Devuan",
"ansible_distribution_major_version": "1",
"ansible_distribution_release": jessie",
"ansible_distribution_version": "1.0",
"ansible_os_family": "Debian"


Ansible parses /etc/os-release (see: 
https://github.com/ansible/ansible/blob/5bbf0d9cb679d803072535b9c1d9e0db680633ac/lib/ansible/module_utils/facts.py)


I think, we should update this file?

Are you OK with that?

Cheers,

Emilien

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Ansible facts with Devuan

2017-04-26 Thread Emilien Mantel

Hi devuaners!

I'm working to adapt my (debian) ansible roles with devuan.

However, I have some issues with facts (setup module).


In Debian Jessie:

"ansible_distribution": "Debian",
"ansible_distribution_major_version": "8",
"ansible_distribution_release": "jessie",
"ansible_distribution_version": "8.7"
"ansible_os_family": "Debian"

In Ubuntu:

"ansible_distribution": "Ubuntu",
"ansible_distribution_major_version": "16",
"ansible_distribution_release": "xenial",
"ansible_distribution_version": "16.04"
"ansible_os_family": "Debian"

In Devuan Jessie (1.0 RC) with vagrant:

"ansible_distribution": "Devuan GNU/Linux",
"ansible_distribution_major_version": "NA",
"ansible_distribution_release": "NA",
"ansible_distribution_version": "1 (jessie)",
"ansible_os_family": "Devuan GNU/Linux"

In Devuan, IMHO should be:

"ansible_distribution": "Devuan",
"ansible_distribution_major_version": "1",
"ansible_distribution_release": jessie",
"ansible_distribution_version": "1.0",
"ansible_os_family": "Debian"


Ansible parses /etc/os-release (see: 
https://github.com/ansible/ansible/blob/5bbf0d9cb679d803072535b9c1d9e0db680633ac/lib/ansible/module_utils/facts.py) 



Should we update this file?

Are you OK with that?

Cheers,

Emilien

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng