From dd5f9372159ce986f24c5da58f8e2fb65143b3c0 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 29 Nov 2024 13:15:51 +0100 Subject: [PATCH] Adding includes/389ds-repl-tasks-cleanallruv.yaml --- includes/389ds-repl-tasks-cleanallruv.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 includes/389ds-repl-tasks-cleanallruv.yaml diff --git a/includes/389ds-repl-tasks-cleanallruv.yaml b/includes/389ds-repl-tasks-cleanallruv.yaml new file mode 100644 index 0000000..3193ec4 --- /dev/null +++ b/includes/389ds-repl-tasks-cleanallruv.yaml @@ -0,0 +1,19 @@ +--- + +- name: "Clean all RUVs for Replication ID {{ target_replica_id }} on suffix '{{ suffix }}' ..." + ansible.builtin.shell: "dsconf '{{ slapd_instance }}' repl-tasks cleanallruv --suffix '{{ suffix }}' --replica-id={{ target_replica_id }}" + ignore_errors: true + +- name: "Get the result of cleaning RUVs on suffix '{{ suffix }}' ..." + ansible.builtin.shell: "dsconf '{{ slapd_instance }}' repl-tasks list-cleanruv-tasks --suffix '{{ suffix }}'" + register: list_cleanruv_tasks_results + ignore_errors: true + check_mode: false + changed_when: false + +- name: "Show current list_cleanruv_tasks_results for suffix '{{ suffix }}'." + debug: + msg: "{{ list_cleanruv_tasks_results.stdout }}" + verbosity: 0 + +# vim: filetype=yaml -- 2.39.5