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: