diff --git a/Copy_keys.yml b/Copy_keys.yml index ce1bcba..8437bc5 100644 --- a/Copy_keys.yml +++ b/Copy_keys.yml @@ -1,22 +1,4 @@ --- -- name: Copie de la clé du DSMC sur les instances splunk - become: yes - become_user: "{{ privileged_user }}" - hosts: splunk_deployement - tasks: - - 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 become_user: "{{ privileged_user }}" @@ -26,12 +8,10 @@ copy: src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" dest: "/opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.mom.fr/" - owner: root - group: root - remote_src: true - vars: - backup_result_var: "{{ backup_result }}" - # - name: "Start Splunk via cli" - # command: "{{ splunk_exec }} start" - # become: yes - # become_user: "{{ privileged_user }}" \ No newline at end of file + owner: splunk + group: splunk + + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} start" + become: yes + become_user: "{{ privileged_user }}" \ No newline at end of file