Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Fixes #99: Cannot upload images using VirtualBox with Drupal 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jun 18, 2015
1 parent 7b7ac00 commit 1a39996
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions provisioning/tasks/www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
# Originally I tried adding to the www group, but because Ansible uses one SSH
# connection, that broke the initial provisioning, since groups aren't refreshed
# without a new session or log off/log on.
- name: Ensure admin group exists.
group: name=admin state=present
- name: Ensure necessary groups exist.
group: "name={{ item }} state=present"
with_items:
- admin
- dialout

- name: Ensure vagrant user is in admin group.
user: "name={{ vagrant_user }} append=yes groups=admin"

- name: Ensure www-data user is in dialout group (Debian).
user: "name=www-data append=yes groups=dialout"
when: ansible_os_family == 'Debian'

- name: Remove default virtualhost file.
file:
path: /etc/apache2/sites-enabled/000-default.conf
Expand Down

0 comments on commit 1a39996

Please sign in to comment.