]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding Ansible info module ds389_plugins_info
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 19 Dec 2024 17:28:24 +0000 (18:28 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 19 Dec 2024 17:28:24 +0000 (18:28 +0100)
lib/ansible/ds389_logging_info.py
roles/389ds-config-plugins/tasks/main.yaml

index be1a647059efd637b9663017254edd76185e87fc..e3f57c94bbb4708b28168484eb35b3ee407cffe9 100644 (file)
@@ -183,7 +183,7 @@ class Ds389LoggingInfo(object):
 
     # --------------------------------------------------------------------------
     def run(self):
-        """Retrieve the list anyhow ..."""
+        """Retrieve the logging info anyhow ..."""
         try:
             cmd = get_bin_path('dsconf')
         except ValueError:
index 53256bd72b00be015a77963dcb72c1b37bfed053..8bb3fd3f7d555fc95e4f0d43e9e3706d3ade088b 100644 (file)
@@ -1,39 +1,57 @@
 ---
 
+- name: "Get configuration of all plugins."
+  ds389_plugins_info:
+    instance: "slapd-{{ slapd_instance }}"
+  register: get_plugins_info
+
+- name: "Show get_plugins_info"
+  debug:
+    var: get_plugins_info
+    verbosity: 3
+
+- set_fact:
+    ds389_plugin_config: "{{ get_plugins_info.config }}"
+
+- name: "Show current plugins information:"
+  debug:
+    var: ds389_plugin_config
+    verbosity: 0
+
 - name: "Set default for ds389_plugin_memberof_config."
   set_fact:
     ds389_plugin_memberof_config: true
   when: ds389_plugin_memberof_config is undefined
 
-- name: "Configuring the 389ds memberOf-Plugin."
-  include_tasks: 'memberof.yaml'
-  when: (ds389_plugin_memberof_config | bool) == true
+- name: "Configuring the 389ds memberOf-Plugin."
+  include_tasks: 'memberof.yaml'
+  when: (ds389_plugin_memberof_config | bool) == true
 
 - name: "Set default for ds389_plugin_referint_config."
   set_fact:
     ds389_plugin_referint_config: true
   when: ds389_plugin_referint_config is undefined
 
-- name: "Configuring the 389ds referential-integrity-Plugin."
-  include_tasks: 'referint.yaml'
-  when: (ds389_plugin_referint_config | bool) == true
+- name: "Configuring the 389ds referential-integrity-Plugin."
+  include_tasks: 'referint.yaml'
+  when: (ds389_plugin_referint_config | bool) == true
 
 - name: "Set default for ds389_plugin_attr_uniq_config."
   set_fact:
     ds389_plugin_attr_uniq_config: true
   when: ds389_plugin_attr_uniq_config is undefined
 
-- name: "Configuring the 389ds attr-uniq-Plugin."
-  include_tasks: 'attr-uniq.yaml'
-  when: (ds389_plugin_attr_uniq_config | bool) == true
+- name: "Configuring the 389ds attr-uniq-Plugin."
+  include_tasks: 'attr-uniq.yaml'
+  when: (ds389_plugin_attr_uniq_config | bool) == true
 
 - name: "Set default for ds389_plugin_account_policy_config."
   set_fact:
     ds389_plugin_account_policy_config: true
   when: ds389_plugin_account_policy_config is undefined
 
-- name: "Configuring the 389ds account-policy-Plugin."
-  include_tasks: 'account-policy.yaml'
-  when: (ds389_plugin_account_policy_config | bool) == true
+- name: "Configuring the 389ds account-policy-Plugin."
+  include_tasks: 'account-policy.yaml'
+  when: (ds389_plugin_account_policy_config | bool) == true
 
 # vim: filetype=yaml