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"
|
||||
|
||||
- name: enable https
|
||||
command: a2ensite default-ssl.conf
|
||||
shell: 'grep -q "VirtualHost .*:443" * || a2ensite default-ssl.conf'
|
||||
args:
|
||||
creates: /etc/apache2/sites-enabled/default-ssl.conf
|
||||
chdir: /etc/apache2/sites-enabled/
|
||||
creates: default-ssl.conf
|
||||
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
|
||||
file:
|
||||
|
@ -109,7 +112,6 @@
|
|||
state: directory
|
||||
owner: www-data
|
||||
group: www-data
|
||||
recurse: Yes
|
||||
|
||||
|
||||
## install nextcloud:
|
||||
|
|
Loading…
Add table
Reference in a new issue