Skip to content

Commit

Permalink
Merge pull request geerlingguy#81 from morgajel/master
Browse files Browse the repository at this point in the history
adding yum repo flag for Redhat
  • Loading branch information
geerlingguy authored Jan 25, 2017
2 parents c210271 + 6f2b69b commit 3fc0071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Used only for Debian/Ubuntu installation, as the -t option for apt.
nginx_default_release: ""

# Used only for Redhat installation, enables source Nginx repo.
nginx_yum_repo_enabled: true

# Use the official Nginx PPA for Ubuntu, and the version to use if so.
nginx_ppa_use: false
nginx_ppa_version: stable
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
owner: root
group: root
mode: 0644
when: nginx_yum_repo_enabled

- name: Ensure nginx is installed.
yum:
name: "{{ nginx_package_name }}"
state: installed
enablerepo: nginx

0 comments on commit 3fc0071

Please sign in to comment.