Move content from htaccess file to site config. Separate krb5 config.

This commit is contained in:
Andreas B. Mundt 2020-01-15 19:47:06 +01:00
parent e069171539
commit 97e980fbf7
4 changed files with 28 additions and 44 deletions

View file

@ -75,16 +75,13 @@
copy:
src: nextcloud.conf
dest: /etc/apache2/sites-available/nextcloud.conf
notify: "restart apache2"
- name: provide htaccess file
- name: provide kerberos SSO config
copy:
src: htaccess
dest: /var/www/html/.htaccess
- name: enable https
command: a2ensite default-ssl.conf
args:
creates: /etc/apache2/sites-enabled/default-ssl.conf
src: krb5-nextcloud.conf
dest: /etc/apache2/sites-available/krb5-nextcloud.conf
when: "'kerberize' in role_names"
notify: "restart apache2"
- name: enable nextcloud site
@ -93,6 +90,19 @@
creates: /etc/apache2/sites-enabled/nextcloud.conf
notify: "restart apache2"
- name: enable kerberos access to nextcloud site
command: a2ensite krb5-nextcloud.conf
args:
creates: /etc/apache2/sites-enabled/krb5-nextcloud.conf
notify: "restart apache2"
when: "'kerberize' in role_names"
- name: enable https
command: a2ensite default-ssl.conf
args:
creates: /etc/apache2/sites-enabled/default-ssl.conf
notify: "restart apache2"
- name: make sure data directory exists
file:
path: "{{ data_dir }}"