Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspbian detected as Debian #187

Closed
arbitrix opened this issue Mar 6, 2017 · 4 comments
Closed

Raspbian detected as Debian #187

arbitrix opened this issue Mar 6, 2017 · 4 comments

Comments

@arbitrix
Copy link

arbitrix commented Mar 6, 2017

DebOps sets core__distribution to Debian instead of Raspbian when run on Raspbian. This causes debops.common to fail because of an incorrect /etc/apt/sources.list.

On today's Raspbian ansible_lsb.id="Raspbian" but ansible_distribution="Debian".

On Ubuntu 16.04 ansible_lsb.id="Ubuntu" and ansible_distribution="Ubuntu".

DebOps prefers ansible_distribution over ansible_lsb.id as per:

core__distribution: '{{ ansible_distribution
                        if (ansible_distribution != "NA")
                        else (ansible_lsb.id if ansible_lsb|d() else "NA") }}'

Would it be possible to have Raspbian autodetected by preferring ansible_lsb.id? Or would that break other platforms?

@drybjed
Copy link
Member

drybjed commented Mar 8, 2017

Since this issue is propping up pretty consistently, I'll reoder the values to have ansible_lsb.id tried as the first one. It shouldn't affect other platforms supported by the project (Debian, Ubuntu).

@drybjed drybjed closed this as completed Mar 10, 2017
@arbitrix
Copy link
Author

Thank you.

@drybjed
Copy link
Member

drybjed commented Mar 12, 2017

@arbitrix Does it work as expected now? I don't have a Raspbian to test it with...

@arbitrix
Copy link
Author

@drybjed I will bootstrap one and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants