- name: "Show the command to execute:"
debug:
var: plugin_memberof_cmd
- verbosity: 0
+ verbosity: 1
- name: "Finally configure the memberof plugin."
ansible.builtin.shell: "{{ plugin_memberof_cmd }}"
+- name: "Enabling memberof plugin."
+ ansible.builtin.shell: "dsconf {{ slapd_instance | quote }} plugin memberof enable"
+ when: "plugin_memberof_config['enabled'] == false and ds389_plugin_memberof_enabled == true"
+
+- name: "Disabling memberof plugin."
+ ansible.builtin.shell: "dsconf {{ slapd_instance | quote }} plugin memberof disable"
+ when: "plugin_memberof_config['enabled'] == true and ds389_plugin_memberof_enabled == false"
# vim: filetype=yaml