mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Added all LDAP changes before removing, because it doesn't work. Will trty to replace it by OIDC
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
- name: "Render LDAP CLI helper"
|
||||
template:
|
||||
src: cli-ldap.php.j2
|
||||
src: ldap/cli.php.j2
|
||||
dest: "{{ JOOMLA_LDAP_CONF_FILE }}"
|
||||
mode: "0644"
|
||||
when: JOOMLA_LDAP_ENABLED | bool
|
||||
@@ -23,3 +23,24 @@
|
||||
- php
|
||||
- xml
|
||||
when: JOOMLA_LDAP_AUTO_CREATE_ENABLED | bool
|
||||
|
||||
- name: "Deploy LDAP diagnose CLI"
|
||||
template:
|
||||
src: ldap/diagnose.php.j2
|
||||
dest: "{{ docker_compose.directories.volumes }}/cli-ldap-diagnose.php"
|
||||
mode: "0644"
|
||||
when: MODE_DEBUG | bool
|
||||
|
||||
- name: "Deploy Joomla plugin inspector CLI (list state)"
|
||||
template:
|
||||
src: ldap/plugins.php.j2
|
||||
dest: "{{ docker_compose.directories.volumes }}/cli-plugins.php"
|
||||
mode: "0644"
|
||||
when: MODE_DEBUG | bool
|
||||
|
||||
- name: "Deploy Joomla auth trace CLI"
|
||||
template:
|
||||
src: ldap/auth-trace.php.j2
|
||||
dest: "{{ docker_compose.directories.volumes }}/cli-ldap-auth-trace.php"
|
||||
mode: "0644"
|
||||
when: MODE_DEBUG | bool
|
||||
|
@@ -6,7 +6,6 @@
|
||||
changed_when: "'configured' in ldap_conf.stdout | lower"
|
||||
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
||||
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|
||||
when: JOOMLA_LDAP_ENABLED | bool
|
||||
|
||||
- name: "Register & enable ldapautocreate Joomla system plugin"
|
||||
command: >
|
||||
|
@@ -2,4 +2,3 @@
|
||||
command:
|
||||
argv: [ docker, exec, "{{ JOOMLA_CONTAINER }}", php, "-l", "{{ JOOMLA_CONFIG_FILE }}" ]
|
||||
changed_when: false
|
||||
when: MODE_ASSERT | bool
|
||||
|
14
roles/web-app-joomla/tasks/07_diagnose.yml
Normal file
14
roles/web-app-joomla/tasks/07_diagnose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- name: "Run LDAP diagnose"
|
||||
command:
|
||||
argv:
|
||||
- docker
|
||||
- exec
|
||||
- "{{ JOOMLA_CONTAINER }}"
|
||||
- php
|
||||
- /var/www/html/cli/ldap-diagnose.php
|
||||
- "--username={{ users.administrator.username }}"
|
||||
register: ldap_diag
|
||||
changed_when: false
|
||||
|
||||
- debug:
|
||||
var: ldap_diag.stdout_lines
|
@@ -26,5 +26,15 @@
|
||||
- 02_install.yml
|
||||
- 03_debug.yml
|
||||
- 04_patch.yml
|
||||
- 05_ldap.yml
|
||||
- 06_assert.yml
|
||||
|
||||
- name: Include LDAP routines
|
||||
include_tasks: "05_ldap.yml"
|
||||
when: JOOMLA_LDAP_ENABLED | bool
|
||||
|
||||
- name: Include assert routines
|
||||
include_tasks: "06_assert.yml"
|
||||
when: MODE_ASSERT | bool
|
||||
|
||||
- name: Include LDAP diagnose routines
|
||||
include_tasks: "07_diagnose.yml"
|
||||
when: MODE_DEBUG | bool and JOOMLA_LDAP_ENABLED | bool
|
Reference in New Issue
Block a user