Merge pull request #81 from morgajel/master

adding yum repo flag for Redhat
This commit is contained in:
Jeff Geerling 2017-01-25 14:38:51 -06:00 committed by GitHub
commit 3fc0071953
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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