:: [DNG] Ansible and Devuan (bug or fe…
Pàgina inicial
Delete this message
Reply to this message
Autor: Emilien Mantel
Data:  
A: dng
Assumptes nous: Re: [DNG] Ansible and Devuan (bug or feature?), Re: [DNG] Ansible and Devuan (bug or feature?)
Assumpte: [DNG] Ansible and Devuan (bug or feature?)
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