Skip to content

Commit

Permalink
feat: update for xenial
Browse files Browse the repository at this point in the history
As the apache2-mpm-prefork doesn't exist with xenial's apache any more,
I removed `apache2_mpm_package` and renamed `apache2_packge` to `apache2_packages`
to make it configureable.
  • Loading branch information
franklinkim committed Oct 15, 2017
1 parent 32c4c3d commit a99bf1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 6 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
# apache2_packages:
# - apache2
# - apache2-mpm-prefork
# apache2_module:
# - { id: auth, state: absent }
# - { id: rewrite, state: present }
Expand Down Expand Up @@ -27,10 +30,9 @@
# append: ''
#

# package name (version)
apache2_package: apache2
# mpm package name (version)
apache2_mpm_package: apache2-mpm-prefork
# packages (versions)
apache2_packages:
- apache2
# ports to listen to
apache2_ports: [80]
# ssl ports to listen to
Expand Down
4 changes: 1 addition & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
apt:
pkg: "{{ item }}"
state: present
with_items:
- "{{ apache2_package }}"
- "{{ apache2_mpm_package }}"
with_items: "{{ apache2_packages }}"

- name: Adding rules
copy:
Expand Down

0 comments on commit a99bf1d

Please sign in to comment.