From d29b8871344b1c8bb32c926ff3cfcb20f5fc707f Mon Sep 17 00:00:00 2001 From: Bruno Pelaia Date: Wed, 27 Dec 2023 22:54:17 +0100 Subject: [PATCH] configure dmc fix, pull #205 --- roles/splunk/tasks/configure_dmc.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/splunk/tasks/configure_dmc.yml b/roles/splunk/tasks/configure_dmc.yml index 0a81775d..2c13dee5 100644 --- a/roles/splunk/tasks/configure_dmc.yml +++ b/roles/splunk/tasks/configure_dmc.yml @@ -13,6 +13,18 @@ become: true become_user: "{{ splunk_nix_user }}" no_log: true + changed_when: peer_add.rc == 0 + failed_when: peer_add.rc != 0 and peer_add.rc != 24 + +- name: Create local dir if it doesn't exist + ansible.builtin.file: + path: "{{ splunk_home }}/etc/apps/splunk_monitoring_console/local" + state: directory + owner: "{{ splunk_nix_user }}" + group: "{{ splunk_nix_group }}" + mode: 0744 + become: true + become_user: "{{ splunk_nix_user }}" - name: Configure monitoring console in auto mode community.general.ini_file: