start including nextcloud
This commit is contained in:
30
host_vars/nextcloud
Normal file
30
host_vars/nextcloud
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
ansible_cron_minute: "*/5"
|
||||||
|
|
||||||
|
ssh_port: 22
|
||||||
|
ssh_users: "root rene"
|
||||||
|
|
||||||
|
# platform-specific
|
||||||
|
microcode_amd_install: false
|
||||||
|
microcode_intel_install: true
|
||||||
|
|
||||||
|
# purpose selection
|
||||||
|
nextcloud: true
|
||||||
|
database: false
|
||||||
|
mysql: false
|
||||||
|
postgresql: false
|
||||||
|
webserver: true
|
||||||
|
apache: true
|
||||||
|
|
||||||
|
# application selection
|
||||||
|
borgbackup: true
|
||||||
|
docker: false
|
||||||
|
ranger: true
|
||||||
|
syncthing: true
|
||||||
|
vifm: true
|
||||||
|
yay: false
|
||||||
|
|
||||||
|
# shell selection
|
||||||
|
zsh: true
|
||||||
1
hosts
1
hosts
@@ -77,6 +77,7 @@ tuxedo-book-xp1511.universe.local
|
|||||||
|
|
||||||
[webserver]
|
[webserver]
|
||||||
coruscant.universe.local
|
coruscant.universe.local
|
||||||
|
nextcloud.universe.local
|
||||||
|
|
||||||
[workstation:children]
|
[workstation:children]
|
||||||
development
|
development
|
||||||
|
|||||||
4
roles/webserver/tasks/apps/apps.yml
Normal file
4
roles/webserver/tasks/apps/apps.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- import_tasks: apps/nextcloud.yml
|
||||||
|
when:
|
||||||
|
- nexcloud is defined
|
||||||
|
- nextcloud == True
|
||||||
1
roles/webserver/tasks/apps/nextcloud/nextcloud.yml
Normal file
1
roles/webserver/tasks/apps/nextcloud/nextcloud.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
- import_tasks: apps/nextcloud/prereq.yml
|
||||||
29
roles/webserver/tasks/apps/nextcloud/prereq.yml
Normal file
29
roles/webserver/tasks/apps/nextcloud/prereq.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
- name: webserver | nextcloud | basic tools
|
||||||
|
package:
|
||||||
|
state: latest
|
||||||
|
name:
|
||||||
|
- ca-certificates
|
||||||
|
- apt-transport-https
|
||||||
|
- software-properties-common
|
||||||
|
- lsb-release
|
||||||
|
- ca-certificates
|
||||||
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
|
|
||||||
|
- name: webserver | nextcloud | prereq | get php repo key
|
||||||
|
uri:
|
||||||
|
url: "https://packages.sury.org/php/apt.gpg"
|
||||||
|
dest: "/etc/apt/trusted.gpg.d/php.gpg"
|
||||||
|
|
||||||
|
- name: webserver | nextcloud | prereq | add php repo
|
||||||
|
lineinfile:
|
||||||
|
path: "/etc/apt/sources.list.d/php.list"
|
||||||
|
state: present
|
||||||
|
line: "deb https://packages.sury.org/php/ {{ ansible_distribution_release | lower }} main"
|
||||||
|
create: True
|
||||||
|
|
||||||
|
- name: webserver | nextcloud | prereq | install php
|
||||||
|
package:
|
||||||
|
state: latest
|
||||||
|
name: "{{ item.package }}"
|
||||||
|
update_cache: True
|
||||||
|
with_item: "{{ nextcloud_php_packages }}"
|
||||||
@@ -14,3 +14,4 @@
|
|||||||
package:
|
package:
|
||||||
name: certbot
|
name: certbot
|
||||||
state: latest
|
state: latest
|
||||||
|
- import_tasks: apps/apps.yml
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
apache_package: apache2
|
apache_package: apache2
|
||||||
nginx_package: nginx
|
nginx_package: nginx
|
||||||
acme_package: acme
|
acme_package: acme
|
||||||
|
|
||||||
|
nextcloud_php_packages:
|
||||||
|
- package: php8.0
|
||||||
|
- package: libapache2-mod-php8.0
|
||||||
|
- package: php8.0-fpm
|
||||||
|
- package: libapache2-mod-fcgid
|
||||||
Reference in New Issue
Block a user