X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/bac725d468db849ff839aa86f1228324ff58d273..e90bfd594054020d79964adf4995614bf8579711:/tasks/kivitendo.yml?ds=inline diff --git a/tasks/kivitendo.yml b/tasks/kivitendo.yml index faaa69f..a9019ad 100644 --- a/tasks/kivitendo.yml +++ b/tasks/kivitendo.yml @@ -89,7 +89,7 @@ - name: Copy over Kivitendo.conf. ansible.builtin.copy: - src: files/kivitendo.conf + src: files/kivitendo/kivitendo.conf dest: /var/www/kivitendo-erp/config/kivitendo.conf owner: www-data mode: 'u=rw,g=rw,o=' @@ -140,6 +140,34 @@ method: trust notify: Restart postgresql +# apache server for kivi +- name: Activate apache fastcgi, headers and ssl modules. + community.general.apache2_module: + state: present + name: "{{ item }}" + loop: + - fcgid + - headers + - ssl + - rewrite + - socache_shmcb + notify: Restart apache + +- name: Copy over apacha ssl-conf + ansible.builtin.copy: + src: files/kivitendo/default-ssl.conf + dest: /etc/apache2/sites-available/default-ssl.conf + mode: '640' + notify: Restart apache + +- name: Disable 000-default.conf + ansible.builtin.command: a2dissite 000-default.conf + notify: Restart apache + +- name: Enable SSL + ansible.builtin.command: a2ensite default-ssl + notify: Restart apache + # Anleitung adaptiert # https://github.com/kivitendo/kivitendo-ansible/blob/master/main.yml #