Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

update package manager before installing nginx #86

Open
vjpr opened this issue Jan 8, 2016 · 5 comments
Open

update package manager before installing nginx #86

vjpr opened this issue Jan 8, 2016 · 5 comments
Labels

Comments

@vjpr
Copy link

vjpr commented Jan 8, 2016

This role didn't work out of the box for me because I needed to run sudo apt-get update.

Should this be incorporated in this role, or should it be in my playbook?

@jdauphant
Copy link
Owner

What is your distribution ? ( Debian, Ubuntu or other Debian Derivate )
What's the last time you made an "apt-get update" in your system ? (if it's old, it's not the role of this role to update that for you, it's more in your playbook or an apt role to do that)
If it's recently, the problem was encounted with nginx_official_repo activated ?

FYI this role is automatically runned in a fresh ubuntu VM by travis at each commit.

@jdauphant jdauphant added the bug label Jan 9, 2016
@vjpr
Copy link
Author

vjpr commented Jan 9, 2016

It was a fresh Ubuntu 14.14 on amazon ec2.
On Fri, 8 Jan 2016 at 7:02 PM, Julien DAUPHANT notifications@github.com
wrote:

What is your distribution ? ( Debian, Ubuntu or other Debian Derivate )
What's the last time you made an "apt-get update" in your system ? (if
it's old, it's not the role of this role to update that for you, it's more
in your playbook or an apt role to do that)
If it's recently, the problem was encounted with nginx_official_repo
activated ?

FYI this role is automatically runned in a fresh ubuntu VM by travis at
each commit.


Reply to this email directly or view it on GitHub
#86 (comment)
.

@jdauphant
Copy link
Owner

Can you install other apps or it only fail with nginx ?
In the first case, you should add "sudo apt-get update" in the playbook (or made it with an another role)

@javaguirre
Copy link

If you have ansible >= 1.9 you can use update_cache=yes in the tasks installing the packages, maybe It could be a good idea to have a release for versions later than 1.9, where this problem is trivial to solve.

@skolsuper
Copy link

+1 I also just had this problem on a fresh AWS Ubuntu 14.04 box.

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

No branches or pull requests

4 participants