Skip to content

Commit

Permalink
Make apache-user and apache-group role defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Dec 10, 2020
1 parent 610d7ee commit 93ee485
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 0 additions & 4 deletions group_vars/cdhweb/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ app_name: cdhweb
symlink: cdhweb
# apache location
apache_app_path: "/var/www/{{ app_name }}"
# apache group uses ubuntu default of "www-data"
apache_group: "www-data"
# media_root settings
media_root: /srv/www/media
# wsgi path
wsgi_path: "{{ django_app }}/wsgi.py"
# nodejs version
Expand Down
3 changes: 3 additions & 0 deletions roles/configure_logging/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
apache_user: "www-data"
apache_group: "{{ apache_user }}"
2 changes: 1 addition & 1 deletion roles/configure_logging/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: For PUL VMs, set logging directory owner and group to apache
file:
path: '{{ logging_dir }}'
owner: '{{ apache_group }}'
owner: '{{ apache_user }}'
group: '{{ apache_group }}'
recurse: true
when: deploy_user is defined and ansible_distribution != 'Springdale'
Expand Down
4 changes: 3 additions & 1 deletion roles/configure_media/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
# default for configure_media
apache_group: apache
media_root: "/var/www/media/"
apache_user: "www-data"
apache_group: "{{ apache_user }}"
3 changes: 2 additions & 1 deletion roles/django_compressor/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# default for configure_media
apache_group: apache
apache_user: "www-data"
apache_group: "{{ apache_user }}"

0 comments on commit 93ee485

Please sign in to comment.