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

Is it possible to use latest version of NGINX for Ubuntu? #17

Closed
BR0kEN- opened this issue May 19, 2015 · 3 comments
Closed

Is it possible to use latest version of NGINX for Ubuntu? #17

BR0kEN- opened this issue May 19, 2015 · 3 comments

Comments

@BR0kEN-
Copy link

BR0kEN- commented May 19, 2015

What I need to specify in nginx_default_release variable to install the latest version of NGINX for this OS? I've tried "1.8.0" and "trusty". First variant was terminated with an error and second is installed the default stable version - "1.4.6".

@geerlingguy
Copy link
Owner

@BR0kEN- to use a lter version, you'd need to add a PPT with a later version sometime prior to this role (e.g. in pre_tasks or in another role) in your playbook, then you can specify that repo using the nginx_default_release variable.

@geerlingguy
Copy link
Owner

For Ubuntu, you can add a specific Nginx repository to your system in a task like:

- name: Add nginx repository for the latest development release.
  apt_repository: repo='ppa:nginx/development'

Then set nginx_default_release to nginx-development in your playbook's variables, and you should get the latest development release.

@geerlingguy
Copy link
Owner

(or you may not even need to set the nginx_default_release... I think the PPA would override the system package in pin priorities, as long as you also update apt's caches after adding the repository.

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