From 23b712995d27120477d25c2d69914e2250d09d20 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Tue, 25 Apr 2023 16:26:45 +0200 Subject: [PATCH] ... --- Copy_keys.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Copy_keys.yml b/Copy_keys.yml index 12d0bc3..ce1bcba 100644 --- a/Copy_keys.yml +++ b/Copy_keys.yml @@ -4,16 +4,18 @@ become_user: "{{ privileged_user }}" hosts: splunk_deployement tasks: - - name: Copie de la clé du DSMC sur les instances splunk - copy: - src: "/opt/splunk/etc/auth/distServerKeys/trusted.pem" - dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" - #src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" - #dest: /opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.mom.fr/ - owner: root - group: root - remote_src: true - register: backup_result + - name: Copie de la clé du DSMC sur les instances splunk + shell: ls -la + register: backup_result + # copy: + # src: "/opt/splunk/etc/auth/distServerKeys/trusted.pem" + # dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" + # #src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" + # #dest: /opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.mom.fr/ + # owner: root + # group: root + # remote_src: true + # register: backup_result - name: Copie de la clé du DSMC sur les instances splunk become: true