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

Commit

Permalink
Fix nginx package installation (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdauphant authored Jan 27, 2017
1 parent 97901ec commit 9c80f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/installation.packages.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
- name: Install the epel packages
- name: Install the epel packages for EL distributions
package: name=epel-release state=present
when: nginx_is_el|bool and nginx_install_epel_repo|bool

- name: Install the nginx packages from official repo
- name: Install the nginx packages from official repo for EL distributions
yum: name={{ item }} state=present enablerepo="nginx"
with_items: "{{ nginx_pkgs }}"
when: nginx_is_el|bool and nginx_official_repo

- name: Install the nginx packages
- name: Install the nginx packages for all other distributions
package: name={{ item }} state=present
with_items: "{{ nginx_pkgs }}"
environment: "{{ nginx_env }}"
when: not nginx_official_repo
when: not nginx_is_el|bool

0 comments on commit 9c80f69

Please sign in to comment.