Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #32 from palantirnet/Fix-apache-user-group
Browse files Browse the repository at this point in the history
Fix apache user/group
  • Loading branch information
becw authored Feb 16, 2017
2 parents b2821ad + 24f0998 commit de1c143
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions conf/vagrant/provisioning/roles/vhost/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
when: drupal8_vhost_exists.stat.exists == False
tags: vhost

- name: Replace apache user
become: true
lineinfile: dest=/etc/apache2/envvars
regexp='export APACHE_RUN_USER=www-data' line='export APACHE_RUN_USER=vagrant'
state=present
tags: vhost

- name: Replace apache group
become: true
lineinfile: dest=/etc/apache2/envvars
regexp='export APACHE_RUN_GROUP=www-data' line='export APACHE_RUN_GROUP=vagrant'
state=present
tags: vhost

- name: Restart Apache
become: true
service: name=apache2 state=restarted
Expand Down

0 comments on commit de1c143

Please sign in to comment.