Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
apache
Commits
068e77d1
Commit
068e77d1
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Generalize Apache config
parent
b4d21832
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+15
-0
15 additions, 0 deletions
defaults/main.yml
tasks/apache.yml
+10
-26
10 additions, 26 deletions
tasks/apache.yml
with
25 additions
and
26 deletions
defaults/main.yml
+
15
−
0
View file @
068e77d1
apache_repositories
:
[]
apache_packages
:
-
apache2
-
apache2-utils
-
apache2-mpm-event
-
apache2-mpm-worker
-
apache2-suexec-custom
-
libapache2-mod-fcgid
apache_modules
:
-
rewrite
-
vhost_alias
-
ssl
-
actions
-
alias
-
suexec
apache_version
:
'
2.2'
apache_conf_ext
:
'
'
apache_conf_default_prefix
:
'
'
...
...
This diff is collapsed.
Click to expand it.
tasks/apache.yml
+
10
−
26
View file @
068e77d1
---
# file: roles/apache/tasks/apache.yml
-
name
:
"
Apache
|
Apt
Repository"
apt_repository
:
repo='{{ item }}'
state='present'
with_items
:
'
{{
apache_repositories
}}'
-
name
:
"
Apache
|
Install
required
packages."
apt
:
pkg={{ item }}
pkg=
'
{{ item }}
'
state=installed
with_items
:
-
apache2
-
apache2-utils
-
apache2-mpm-event
-
apache2-mpm-worker
-
apache2-suexec-custom
-
libapache2-mod-fcgid
-
python-passlib
with_items
:
'
{{
apache_packages
}}'
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Enable
some
required
modules"
apache2_module
:
name={{ item }}
name=
'
{{ item }}
'
state=present
with_items
:
-
rewrite
-
vhost_alias
-
ssl
-
actions
-
alias
-
suexec
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Disable
modules"
apache2_module
:
name={{ item }}
state=absent
with_items
:
-
php5
ignore_errors
:
yes
with_items
:
'
{{
apache_modules
}}'
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Turn
on
Extended
Status"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment