mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 02:50:19 +01:00
Merge branch 'jansepke-patch-1'
This commit is contained in:
commit
c8c80dd3ac
4 changed files with 7 additions and 9 deletions
|
@ -100,7 +100,7 @@ The list of packages to be installed. This defaults to a set of platform-specifi
|
|||
|
||||
Set initial Apache daemon state to be enforced when this role is run. This should generally remain `started`, but you can set it to `stopped` if you need to fix the Apache config during a playbook run or otherwise would not like Apache started at the time this role is run.
|
||||
|
||||
apache_packages_state: installed
|
||||
apache_packages_state: present
|
||||
|
||||
If you have enabled any additional repositories such as _ondrej/apache2_, [geerlingguy.repo-epel](https://github.com/geerlingguy/ansible-role-repo-epel), or [geerlingguy.repo-remi](https://github.com/geerlingguy/ansible-role-repo-remi), you may want an easy way to upgrade versions. You can set this to `latest` (combined with `apache_enablerepo` on RHEL) and can directly upgrade to a different Apache version from a different repo (instead of uninstalling and reinstalling Apache).
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@ apache_state: started
|
|||
# `restarted` or `reloaded`
|
||||
apache_restart_state: restarted
|
||||
|
||||
# Apache package state; use `installed` to make sure it's installed, or `latest` if
|
||||
# you want to upgrade or switch versions using a new repo.
|
||||
apache_packages_state: installed
|
||||
# Apache package state; use `present` to make sure it's installed, or `latest`
|
||||
# if you want to upgrade or switch versions using a new repo.
|
||||
apache_packages_state: present
|
||||
|
|
|
@ -6,7 +6,7 @@ galaxy_info:
|
|||
description: Apache 2.x for Linux.
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 2.2
|
||||
min_ansible_version: 2.4
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
when: apache_packages is not defined
|
||||
|
||||
# Setup/install tasks.
|
||||
- include: "setup-{{ ansible_os_family }}.yml"
|
||||
static: no
|
||||
- include_tasks: "setup-{{ ansible_os_family }}.yml"
|
||||
|
||||
# Figure out what version of Apache is installed.
|
||||
- name: Get installed version of Apache.
|
||||
|
@ -34,8 +33,7 @@
|
|||
when: "apache_version.split('.')[1] == '4'"
|
||||
|
||||
# Configure Apache.
|
||||
- include: "configure-{{ ansible_os_family }}.yml"
|
||||
static: no
|
||||
- include_tasks: "configure-{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Ensure Apache has selected state and enabled on boot.
|
||||
service:
|
||||
|
|
Loading…
Reference in a new issue