Compare commits
10 Commits
0.7.0
...
server-30.
Author | SHA1 | Date | |
---|---|---|---|
3616ad5f45
|
|||
0a3b32c823
|
|||
e2e8d84c13
|
|||
6027db3f5f
|
|||
8eae295b83
|
|||
f759064c1e
|
|||
38246ea585
|
|||
ff312f8214
|
|||
31f326016b
|
|||
6640ba726e
|
@ -1,6 +1,6 @@
|
|||||||
namespace: finallycoffee
|
namespace: finallycoffee
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
version: 0.7.0
|
version: 0.7.1
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors:
|
authors:
|
||||||
- transcaffeine <transcaffeine@finally.coffee>
|
- transcaffeine <transcaffeine@finally.coffee>
|
||||||
@ -12,3 +12,7 @@ build_ignore:
|
|||||||
- '*.tar.gz'
|
- '*.tar.gz'
|
||||||
repository: https://git.finally.coffee/finallycoffee/nextcloud
|
repository: https://git.finally.coffee/finallycoffee/nextcloud
|
||||||
issues: https://codeberg.org/finallycoffee/ansible-collection-nextcloud/issues
|
issues: https://codeberg.org/finallycoffee/ansible-collection-nextcloud/issues
|
||||||
|
tags:
|
||||||
|
- nextcloud
|
||||||
|
- nextcloud-apps
|
||||||
|
- docker
|
||||||
|
12
roles/apps/meta/main.yml
Normal file
12
roles/apps/meta/main.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: true
|
||||||
|
dependencies: []
|
||||||
|
galaxy_info:
|
||||||
|
role_name: apps
|
||||||
|
description: Install Nextcloud apps using ansible
|
||||||
|
galaxy_tags:
|
||||||
|
- nextcloud
|
||||||
|
- owncloud
|
||||||
|
- apps
|
||||||
|
- nextcloud-apps
|
||||||
|
- docker
|
@ -1,4 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
allow_duplicates: true
|
||||||
collections:
|
dependencies: []
|
||||||
- community.docker
|
galaxy_info:
|
||||||
|
role_name: ldap_user_backend
|
||||||
|
description: Configure a nextcloud ldap user backend using ansible
|
||||||
|
galaxy_tags:
|
||||||
|
- nextcloud
|
||||||
|
- owncloud
|
||||||
|
- ldap
|
||||||
|
- authentication
|
||||||
|
- docker
|
||||||
|
12
roles/nginx_fpm_proxy/meta/main.yml
Normal file
12
roles/nginx_fpm_proxy/meta/main.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: true
|
||||||
|
dependencies: []
|
||||||
|
galaxy_info:
|
||||||
|
role_name: nginx_fpm_proxy
|
||||||
|
description: Configure nginx as a FPM proxy for nextcloud
|
||||||
|
galaxy_tags:
|
||||||
|
- nextcloud
|
||||||
|
- owncloud
|
||||||
|
- nginx
|
||||||
|
- fpm
|
||||||
|
- docker
|
@ -29,9 +29,9 @@
|
|||||||
env: "{{ nextcloud_nginx_container_env }}"
|
env: "{{ nextcloud_nginx_container_env }}"
|
||||||
name: "{{ nextcloud_nginx_container_name }}"
|
name: "{{ nextcloud_nginx_container_name }}"
|
||||||
image: "{{ nextcloud_nginx_container_image_ref }}"
|
image: "{{ nextcloud_nginx_container_image_ref }}"
|
||||||
ports: "{{ nextcloud_nginx_container_ports }}"
|
ports: "{{ nextcloud_nginx_container_ports | default(omit, true) }}"
|
||||||
volumes: "{{ nextcloud_nginx_container_volumes }}"
|
volumes: "{{ nextcloud_nginx_container_volumes }}"
|
||||||
labels: "{{ nextcloud_nginx_container_labels }}"
|
labels: "{{ nextcloud_nginx_container_labels | default(omit, true) }}"
|
||||||
networks: "{{ nextcloud_nginx_container_networks | default(omit) }}"
|
networks: "{{ nextcloud_nginx_container_networks | default(omit, true) }}"
|
||||||
restart_policy: "{{ nextcloud_nginx_container_restart_policy }}"
|
restart_policy: "{{ nextcloud_nginx_container_restart_policy }}"
|
||||||
state: started
|
state: started
|
||||||
|
12
roles/oidc_user_backend/meta/main.yml
Normal file
12
roles/oidc_user_backend/meta/main.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: true
|
||||||
|
dependencies: []
|
||||||
|
galaxy_info:
|
||||||
|
role_name: oidc_user_backend
|
||||||
|
description: Configure a nextcloud oidc user backend using ansible
|
||||||
|
galaxy_tags:
|
||||||
|
- nextcloud
|
||||||
|
- owncloud
|
||||||
|
- oidc
|
||||||
|
- authentication
|
||||||
|
- docker
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
nextcloud_version: 30.0.0
|
nextcloud_version: 30.0.2
|
||||||
nextcloud_user: nextcloud
|
nextcloud_user: nextcloud
|
||||||
nextcloud_basepath: /opt/nextcloud
|
nextcloud_basepath: /opt/nextcloud
|
||||||
nextcloud_config_path: "{{ nextcloud_basepath }}/config"
|
nextcloud_config_path: "{{ nextcloud_basepath }}/config"
|
||||||
@ -20,9 +20,20 @@ nextcloud_database_pass: ~
|
|||||||
nextcloud_database_host: localhost
|
nextcloud_database_host: localhost
|
||||||
|
|
||||||
nextcloud_container_name: nextcloud
|
nextcloud_container_name: nextcloud
|
||||||
nextcloud_container_image: docker.io/library/nextcloud
|
nextcloud_container_image_server: docker.io
|
||||||
|
nextcloud_container_image_namespace: library
|
||||||
|
nextcloud_container_image_name: nextcloud
|
||||||
|
nextcloud_container_image: >-2
|
||||||
|
{{
|
||||||
|
[
|
||||||
|
nextcloud_container_image_server,
|
||||||
|
nextcloud_container_image_namespace,
|
||||||
|
nextcloud_container_image_name,
|
||||||
|
] | join('/')
|
||||||
|
}}
|
||||||
nextcloud_container_image_variant: "-fpm-alpine"
|
nextcloud_container_image_variant: "-fpm-alpine"
|
||||||
nextcloud_container_image_ref: "{{ nextcloud_container_name }}:{{ nextcloud_version }}{{ nextcloud_container_image_variant }}"
|
nextcloud_container_image_ref: >-2
|
||||||
|
{{ nextcloud_container_image }}:{{ nextcloud_version }}{{ nextcloud_container_image_variant }}
|
||||||
nextcloud_container_image_force_source: false
|
nextcloud_container_image_force_source: false
|
||||||
nextcloud_container_restart_policy: "unless-stopped"
|
nextcloud_container_restart_policy: "unless-stopped"
|
||||||
|
|
||||||
|
10
roles/server/meta/main.yml
Normal file
10
roles/server/meta/main.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: true
|
||||||
|
dependencies: []
|
||||||
|
galaxy_info:
|
||||||
|
role_name: server
|
||||||
|
description: Deploy nextcloud server, the self-hosted nextcloud
|
||||||
|
galaxy_tags:
|
||||||
|
- nextcloud
|
||||||
|
- owncloud
|
||||||
|
- docker
|
@ -9,6 +9,9 @@
|
|||||||
user: "{{ nextcloud_user_info.uid }}"
|
user: "{{ nextcloud_user_info.uid }}"
|
||||||
tty: yes
|
tty: yes
|
||||||
register: nextcloud_current_config_entry
|
register: nextcloud_current_config_entry
|
||||||
|
until: nextcloud_current_config_entry is success
|
||||||
|
retries: 30
|
||||||
|
delay: 10
|
||||||
check_mode: false
|
check_mode: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
@ -25,9 +28,9 @@
|
|||||||
value_type: >-
|
value_type: >-
|
||||||
{% if value is boolean %}
|
{% if value is boolean %}
|
||||||
boolean
|
boolean
|
||||||
{% elsif value is integer %}
|
{% elif value is integer %}
|
||||||
integer
|
integer
|
||||||
{% elsif value is float %}
|
{% elif value is float %}
|
||||||
float
|
float
|
||||||
{% else %}
|
{% else %}
|
||||||
string
|
string
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
loop: "{{ nextcloud_paths }}"
|
loop: "{{ nextcloud_paths }}"
|
||||||
|
|
||||||
- name: Ensure docker container for nextcloud is pulled
|
- name: Ensure docker container image '{{ nextcloud_container_image_ref }}' for nextcloud is pulled
|
||||||
community.docker.docker_image:
|
community.docker.docker_image:
|
||||||
name: "{{ nextcloud_container_image_ref }}"
|
name: "{{ nextcloud_container_image_ref }}"
|
||||||
state: present
|
state: present
|
||||||
|
Reference in New Issue
Block a user