master
JocelynPa 3 years ago
parent 3f5174a40e
commit 955e0fc373

@ -1,14 +1,14 @@
--- ---
- name: "Récupération du trusted.pem" - name: "Récupération du trusted.pem"
become: yes become: yes
hosts: splunk_deployement #hosts: splunk_deployement
tasks: tasks:
- name: Backup_Keys_DSMC - name: Backup_Keys_DSMC
include_tasks: roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml include_tasks: roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml
- name: "Copie du trusted.pem" - name: "Copie du trusted.pem"
become: yes become: yes
hosts: all:!splunk_uf_Linux:!splunk_deployement #hosts: all:!splunk_uf_Linux:!splunk_deployement
tasks: tasks:
- name: Deploy_Keys_to_others - name: Deploy_Keys_to_others
include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml

@ -2,6 +2,7 @@
- name: Copie de la clé du DSMC sur les instances splunk - name: Copie de la clé du DSMC sur les instances splunk
become: true become: true
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
hosts: splunk_deployement
copy: copy:
src: "/opt/splunk/etc/auth/distServerKeys/trusted.pem" src: "/opt/splunk/etc/auth/distServerKeys/trusted.pem"
dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/" dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/"

@ -1,5 +1,8 @@
--- ---
- name: Copie de la clé du DSMC sur les instances splunk - name: Copie de la clé du DSMC sur les instances splunk
become: true
become_user: "{{ privileged_user }}"
hosts: all:!splunk_uf_Linux:!splunk_deployement
copy: copy:
src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/trusted.pem" src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.mom.fr/trusted.pem"
dest: "/opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.mom.fr/" dest: "/opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.mom.fr/"

Loading…
Cancel
Save