Integrate firewalld, minor fixes/improvements.

This commit is contained in:
Andreas B. Mundt 2020-01-23 16:01:15 +01:00
parent 29fb8f9420
commit 456f5c9870
3 changed files with 15 additions and 4 deletions

View file

@ -20,10 +20,11 @@
## We can start with the installation now:
- name: install apache, php- and db-packages
- name: install apache, firewalld, php- and db-packages
apt:
name:
- apache2
- firewalld
- mariadb-server
- python3-pymysql
- php-apcu
@ -38,6 +39,7 @@
- php-mysql
- php-xml
- php-zip
- unzip
state: latest
- name: disable apache modules
@ -212,7 +214,7 @@
changed_when: cmd_result.stdout is not search('Nothing to do.')
when: allow_download
### app installations:
## app installations:
- name: install extra apps
command: "sudo -u www-data php ./occ app:install {{ item }}"
args:
@ -224,6 +226,14 @@
failed_when: cmd_result.stdout is not search('already installed') and cmd_result.rc != 0
when: allow_download
- name: allow https in firewalld
firewalld:
service: https
permanent: Yes
immediate: Yes
state: enabled
## ToDo kerberox integration:
# sudo -u www-data php ./occ app:enable user_ldap
# sudo -u www-data php ./occ app:install user_saml