# Tempporary
- ds389_logging_config: false
- ds389_plugin_memberof_config: false
- ds389_plugin_referint_config: false
- ds389_plugin_attr_uniq_config: false
+ # ds389_logging_config: false
+ # ds389_plugin_memberof_config: false
+ # ds389_plugin_referint_config: false
+ # ds389_plugin_attr_uniq_config: false
# vim: filetype=yaml
var: plugin_acc_policy_cmd
verbosity: 0
+ - name: "Finally configure the account policy plugin."
+ ansible.builtin.shell: "{{ plugin_acc_policy_cmd }}"
+
+- name: "Check for enabling the account policy plugin."
+ when: "acc_plugin_cfg['enabled'] == false and ds389_plugin_account_policy_enable == true"
+ block:
+
+ - name: "Init + set var plugin_acc_policy_cmd for enabling + restart_389ds."
+ set_fact:
+ plugin_acc_policy_cmd: "dsconf {{ slapd_instance | quote }} plugin account-policy enable"
+ restart_389ds: true
+
+ - name: "Enabling the account policy plugin."
+ ansible.builtin.shell: "{{ plugin_acc_policy_cmd }}"
+
+- name: "Check for disabling the account policy plugin."
+ when: "acc_plugin_cfg['enabled'] == true and ds389_plugin_account_policy_enable == false"
+ block:
+
+ - name: "Init + set var plugin_acc_policy_cmd for enabling + restart_389ds."
+ set_fact:
+ plugin_acc_policy_cmd: "dsconf {{ slapd_instance | quote }} plugin account-policy disable"
+ restart_389ds: true
+
+ - name: "Enabling the account policy plugin."
+ ansible.builtin.shell: "{{ plugin_acc_policy_cmd }}"
+
+
# vim: filetype=yaml