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

set debian repository based on major version only #5

Closed
wants to merge 1 commit into from

Conversation

dbichko
Copy link

@dbichko dbichko commented Dec 31, 2016

Debian installation is failing on a current system because it's looking for 'repos/Debian-8.6' and only 'Debian-8.0' is provided.

Since debian repos only reference the major version (ie 'jessie'), using 'ansible_distribution_major_version' for the file name seems appropriate.

@mongrelion
Copy link
Owner

Hey, @dbichko, спасибо за это пул рыкуэст!)))

Could you please squash your commits? Then we can get this merged immediately.

Only update apt-cache when needed

Instead of always updating the apt cache, leverage the 'update_cache'
method during the apt install task.  Prior to this patch, every run of
this role resulted in a "changed" state.  This patch will clean up that
report to only be "changed" when this actually did indeed change (as
updating the apt-cache isn't a meaningful "change").

use apt_repository instead of file copy
@dbichko
Copy link
Author

dbichko commented Feb 23, 2017

there you go.

@mongrelion
Copy link
Owner

Oops. The pull request has some merge conflicts. Can you fix that?

@mongrelion
Copy link
Owner

mongrelion commented Jun 9, 2017

Fixed the merge conflict on #8

Thanks for this PR and for the effort put on this.

@mongrelion mongrelion closed this Jun 9, 2017
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

Successfully merging this pull request may close these issues.

2 participants