Skip to content

Commit

Permalink
Merge pull request #1 from bestit/fix-apache-crash
Browse files Browse the repository at this point in the history
Add mutex configuration to fix the apache crash on startup
  • Loading branch information
tkellner authored Nov 10, 2020
2 parents a1cba3a + 3f959ee commit 8ef6eef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ansible/roles/apache/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
- apache-restart
become: yes

- name: Push default mutex configuration template
template:
src=default_mutex.conf.j2
dest=/etc/apache2/conf-available/default-mutex.conf
notify:
- apache-restart
become: yes

- name: Create ssl directory
file: path=/etc/apache2/ssl state=directory group={{ apache_group }} owner={{ apache_user }}
become: yes
Expand Down Expand Up @@ -140,3 +148,13 @@
service: name=apache2 state=started enabled=yes
become: yes

- name: Apache | Enable additional configuration
command: a2enconf {{ item }}
args:
creates: /etc/apache2/conf-enabled/{{ item }}.conf
with_items:
- default-mutex
become: yes
notify:
- apache-reload

1 change: 1 addition & 0 deletions ansible/roles/apache/templates/default_mutex.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mutex posixsem

0 comments on commit 8ef6eef

Please sign in to comment.