Only enable https if not available already.
This commit is contained in:
parent
6d33f49fad
commit
31be0f1fc7
1 changed files with 5 additions and 3 deletions
|
@ -98,10 +98,13 @@
|
||||||
when: "'kerberize' in role_names"
|
when: "'kerberize' in role_names"
|
||||||
|
|
||||||
- name: enable https
|
- name: enable https
|
||||||
command: a2ensite default-ssl.conf
|
shell: 'grep -q "VirtualHost .*:443" * || a2ensite default-ssl.conf'
|
||||||
args:
|
args:
|
||||||
creates: /etc/apache2/sites-enabled/default-ssl.conf
|
chdir: /etc/apache2/sites-enabled/
|
||||||
|
creates: default-ssl.conf
|
||||||
notify: "restart apache2"
|
notify: "restart apache2"
|
||||||
|
register: cmd_result
|
||||||
|
changed_when: cmd_result.stdout != '' and cmd_result.stdout is not search('skipped')
|
||||||
|
|
||||||
- name: make sure data directory exists
|
- name: make sure data directory exists
|
||||||
file:
|
file:
|
||||||
|
@ -109,7 +112,6 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
recurse: Yes
|
|
||||||
|
|
||||||
|
|
||||||
## install nextcloud:
|
## install nextcloud:
|
||||||
|
|
Loading…
Add table
Reference in a new issue