JocelynPa 3 years ago
parent d27d23417c
commit 6d1a0b16d2

@ -1,29 +1,29 @@
--- ---
- name: "Récupération du trusted.pem" - name: "Récupération du trusted.pem"
#hosts: all hosts: splunk_deployement
become: yes become: yes
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"
vars: # vars:
target_hosts: splunk_deployement # target_hosts:
register: trusted_file # register: trusted_file
- 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
vars: # vars:
trusted_file_path: "{{ trusted_file.stdout }}" # trusted_file_path: "{{ trusted_file.stdout }}"
target_hosts: all:!splunk_uf_Linux:!splunk_deployement # target_hosts: all:!splunk_uf_Linux:!splunk_deployement
# - 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
# gather_facts: no gather_facts: no
# 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
# vars: vars:
# trusted_file_path: "{{ trusted_file.stdout }}" trusted_file_path: "{{ trusted_file.stdout }}"

@ -9,3 +9,4 @@
owner: root owner: root
group: root group: root
remote_src: true remote_src: true
register: trusted_file

@ -9,6 +9,8 @@
owner: root owner: root
group: root group: root
remote_src: true remote_src: true
vars:
trusted_file_path: "{{ trusted_file.stdout }}"
- name: "Attribution des droits Splunk" - name: "Attribution des droits Splunk"
shell: "chown -Rf splunk:splunk /opt/splunk/" shell: "chown -Rf splunk:splunk /opt/splunk/"

Loading…
Cancel
Save