mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-01 23:04:15 +02:00
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
# @See https://chatgpt.com/share/6798189e-9c00-800f-923c-5ce3cfbdf405
|
|
|
|
- name: Flush all handlers immediately so that occ can be used
|
|
meta: flush_handlers
|
|
|
|
- name: enable oidc_login plugin
|
|
command: "docker exec -u www-data {{nextcloud_application_container_name}} {{nextcloud_docker_path}}occ app:disable oidc_login"
|
|
ignore_errors: true
|
|
when:
|
|
- mode_cleanup | bool
|
|
|
|
- name: install sociallogin plugin
|
|
command: "docker exec -u www-data {{nextcloud_application_container_name}} {{nextcloud_docker_path}}occ app:install sociallogin"
|
|
ignore_errors: true
|
|
|
|
- name: enable sociallogin plugin
|
|
command: "docker exec -u www-data {{nextcloud_application_container_name}} {{nextcloud_docker_path}}occ app:enable sociallogin"
|
|
|
|
- name: Load Sociallogin configuration variables
|
|
include_vars:
|
|
file: sociallogin.yml
|
|
|
|
- name: Configure Sociallogin
|
|
loop: "{{ nextcloud_sociallogin_configuration}}"
|
|
command: >
|
|
docker exec -u www-data {{ nextcloud_application_container_name }}
|
|
php occ config:app:set {{ item.appid }} {{ item.configkey }} --value "{{ item.configvalue }}" |