mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-01 23:04:15 +02:00
28 lines
1.2 KiB
YAML
28 lines
1.2 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: disable 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}}"
|
|
# The | to_json function is necessary to escape custom_providers correct.
|
|
command: >
|
|
docker exec -u www-data {{ nextcloud_application_container_name }}
|
|
php occ config:app:set {{ item.appid }} {{ item.configkey }} --value '{{ item.configvalue | to_json if item.configvalue is mapping else item.configvalue }}' |