From: Frank Brehm Date: Thu, 19 Dec 2024 17:28:24 +0000 (+0100) Subject: Adding Ansible info module ds389_plugins_info X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=057394285b7977513d803a7a51b6f46f1ec093e0;p=pixelpark%2Fpp-admin-tools.git Adding Ansible info module ds389_plugins_info --- diff --git a/lib/ansible/ds389_logging_info.py b/lib/ansible/ds389_logging_info.py index be1a647..e3f57c9 100644 --- a/lib/ansible/ds389_logging_info.py +++ b/lib/ansible/ds389_logging_info.py @@ -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: diff --git a/roles/389ds-config-plugins/tasks/main.yaml b/roles/389ds-config-plugins/tasks/main.yaml index 53256bd..8bb3fd3 100644 --- a/roles/389ds-config-plugins/tasks/main.yaml +++ b/roles/389ds-config-plugins/tasks/main.yaml @@ -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