:: [DNG] Ansible facts with Devuan
Kezdőlap
Delete this message
Reply to this message
Szerző: Emilien Mantel
Dátum:  
Címzett: dng
Tárgy: [DNG] Ansible facts with Devuan
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