nextcloud: Korrigiere lint-Warnungen
This commit is contained in:
parent
7fbb97c73c
commit
6acf008490
1 changed files with 21 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: "common | Apache-Module laden"
|
- name: "Common | Aktiviere Apache-Module"
|
||||||
apache2_module:
|
ansible.builtin.apache2_module:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
state: "{{ item.state|default('present') }}"
|
state: "{{ item.state|default('present') }}"
|
||||||
loop:
|
loop:
|
||||||
|
@ -15,42 +15,44 @@
|
||||||
- name: setenvif
|
- name: setenvif
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
|
|
||||||
- name: "common | Apache-Konfiguration für NC-Seiten"
|
- name: "Common | Erstelle Apache-Konfiguration für NC-Seiten"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/apache2/conf-available/nextcloud_sites.conf
|
path: /etc/apache2/conf-available/nextcloud_sites.conf
|
||||||
state: touch
|
state: touch
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: "common | Apache-Vorlage für Seitenkonfiguration kopieren"
|
- name: "Common | Kopiere Apache-Vorlage für Seitenkonfiguration"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: ../roles/nextcloud/templates/apache_site.conf.j2
|
src: ../roles/nextcloud/templates/apache_site.conf.j2
|
||||||
dest: /etc/apache2/sites-available/nextcloud.conf
|
dest: /etc/apache2/sites-available/nextcloud.conf
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: "common | Apache-Seitenkonfiguration aktivieren"
|
- name: "Common | Aktiviere Apache-Seitenkonfiguration"
|
||||||
file:
|
ansible.builtin.command:
|
||||||
src: /etc/apache2/sites-available/nextcloud.conf
|
cmd: a2ensite nextcloud.conf
|
||||||
dest: /etc/apache2/sites-enabled/nextcloud.conf
|
creates: /etc/apache2/sites-enabled/nextcloud.conf
|
||||||
state: link
|
|
||||||
notify: reload apache
|
notify: reload apache
|
||||||
|
|
||||||
- name: "common | Kopiere PHP-CLI-Konfiguration"
|
- name: "Common | Kopiere PHP-CLI-Konfiguration"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: ../roles/nextcloud/files/30-sao-nextcloud.ini
|
src: ../roles/nextcloud/files/30-sao-nextcloud.ini
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: "common | Aktiviere PHP-CLI-Konfiguration"
|
- name: "Common | Aktiviere PHP-CLI-Konfiguration"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao-nextcloud.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao-nextcloud.ini"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: "common | Ermittle letzte Version"
|
- name: "Common | Ermittle letzte Version"
|
||||||
shell:
|
ansible.builtin.shell:
|
||||||
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
|
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: latest_version
|
register: latest_version
|
||||||
|
|
||||||
- name: "common | Kopiere Update-Skript"
|
- name: "Common | Kopiere Update-Skript"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: ../roles/nextcloud/templates/nextcloud-updater.j2
|
src: ../roles/nextcloud/templates/nextcloud-updater.j2
|
||||||
dest: "/usr/local/bin/nextcloud-updater"
|
dest: "/usr/local/bin/nextcloud-updater"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
Loading…
Reference in a new issue