mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
Remove EPEL repository dependency.
This commit is contained in:
parent
84ae598b50
commit
25f03a033b
4 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
# 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
|
||||
|
||||
|
@ -10,6 +10,10 @@ None.
|
|||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
- geerlingguy.repo-epel (Installs the EPEL repository for CentOS 6.x).
|
||||
None.
|
||||
|
||||
## Example Playbook
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: geerlingguy.repo-epel }
|
||||
dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
author: geerlingguy
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# Apache.
|
||||
- name: Install Apache.
|
||||
yum: name={{ item }} state=installed enablerepo=epel
|
||||
yum: name={{ item }} state=installed enablerepo={{ apache_enablerepo }}
|
||||
with_items:
|
||||
- httpd
|
||||
- httpd-devel
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
apache_enablerepo: ""
|
||||
apache_listen_port: 80
|
||||
apache_vhosts:
|
||||
# Additional properties: 'serveradmin, extra_parameters'.
|
||||
|
|
Loading…
Reference in a new issue