Remove EPEL repository dependency.

This commit is contained in:
Jeff Geerling 2014-03-14 11:28:08 -05:00
parent 84ae598b50
commit 25f03a033b
4 changed files with 9 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# Ansible Role: Apache 2.x # Ansible Role: Apache 2.x
An Ansible Role that installs Apache 2.x on RedHat Enterprise Linux or CentOS 6.x servers. An Ansible Role that installs Apache 2.x on RHEL/CentOS 6.x.
## Requirements ## Requirements
@ -10,6 +10,10 @@ None.
Available variables are listed below, along with default values (see `vars/main.yml`): Available variables are listed below, along with default values (see `vars/main.yml`):
apache_enablerepo: ""
The repository to use when installing Apache. If you'd like later versions of Apache than are available in the OS's core repositories, use a repository like EPEL (which can be installed with the `geerlingguy.repo-epel` role).
apache_listen_port: 80 apache_listen_port: 80
The port on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80. The port on which apache should be listening. Useful if you have another service (like a reverse proxy) listening on port 80.
@ -24,7 +28,7 @@ Note that this role doesn't configure SSL support out of the box; you would need
## Dependencies ## Dependencies
- geerlingguy.repo-epel (Installs the EPEL repository for CentOS 6.x). None.
## Example Playbook ## Example Playbook

View file

@ -1,6 +1,5 @@
--- ---
dependencies: dependencies: []
- { role: geerlingguy.repo-epel }
galaxy_info: galaxy_info:
author: geerlingguy author: geerlingguy

View file

@ -1,7 +1,7 @@
--- ---
# Apache. # Apache.
- name: Install Apache. - name: Install Apache.
yum: name={{ item }} state=installed enablerepo=epel yum: name={{ item }} state=installed enablerepo={{ apache_enablerepo }}
with_items: with_items:
- httpd - httpd
- httpd-devel - httpd-devel

View file

@ -1,4 +1,5 @@
--- ---
apache_enablerepo: ""
apache_listen_port: 80 apache_listen_port: 80
apache_vhosts: apache_vhosts:
# Additional properties: 'serveradmin, extra_parameters'. # Additional properties: 'serveradmin, extra_parameters'.