Browse Source

[apache2] add optional userdir module

update_ca_key
Andrea Cimbalo 8 years ago
parent
commit
9dab7dd887
3 changed files with 15 additions and 1 deletions
  1. +1
    -0
      roles/apache2/defaults/main.yml
  2. +13
    -0
      roles/apache2/tasks/main.yaml
  3. +1
    -1
      roles/pam-ldap/templates/pam-mkhomedir.j2

+ 1
- 0
roles/apache2/defaults/main.yml View File

@ -1,2 +1,3 @@
---
php: false
user_dir: false

+ 13
- 0
roles/apache2/tasks/main.yaml View File

@ -37,3 +37,16 @@
with_items: "{{ config_names }}"
when: config_names is defined
notify: restart apache2
- block:
- name: enable apache userdir module
apache2_module: state=present name=userdir
notify: restart apache2
- name: create public_html in /etc/skel
file:
path: /etc/skel/public_html
state: directory
mode: 660
when: user_dir | bool

+ 1
- 1
roles/pam-ldap/templates/pam-mkhomedir.j2 View File

@ -3,4 +3,4 @@ Default: yes
Priority: 900
Session-Type: Additional
Session:
required pam_mkhomedir.so umask=0022 skel=/etc/skel
required pam_mkhomedir.so umask=0002 skel=/etc/skel

Loading…
Cancel
Save