parent
d27d23417c
commit
6d1a0b16d2
@ -1,29 +1,29 @@
|
||||
---
|
||||
- name: "Récupération du trusted.pem"
|
||||
#hosts: all
|
||||
hosts: splunk_deployement
|
||||
become: yes
|
||||
tasks:
|
||||
- name: "Backup_Keys_DSMC"
|
||||
include_tasks: "roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml"
|
||||
vars:
|
||||
target_hosts: splunk_deployement
|
||||
register: trusted_file
|
||||
|
||||
- name: Deploy_Keys_to_others
|
||||
include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml
|
||||
vars:
|
||||
trusted_file_path: "{{ trusted_file.stdout }}"
|
||||
target_hosts: all:!splunk_uf_Linux:!splunk_deployement
|
||||
|
||||
|
||||
|
||||
# vars:
|
||||
# target_hosts:
|
||||
# register: trusted_file
|
||||
|
||||
# - name: "Copie du trusted.pem"
|
||||
# become: yes
|
||||
# hosts: all:!splunk_uf_Linux:!splunk_deployement
|
||||
# gather_facts: no
|
||||
# tasks:
|
||||
# - name: Deploy_Keys_to_others
|
||||
# include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml
|
||||
# vars:
|
||||
# trusted_file_path: "{{ trusted_file.stdout }}"
|
||||
# target_hosts: all:!splunk_uf_Linux:!splunk_deployement
|
||||
|
||||
|
||||
|
||||
|
||||
- name: "Copie du trusted.pem"
|
||||
become: yes
|
||||
hosts: all:!splunk_uf_Linux:!splunk_deployement
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: Deploy_Keys_to_others
|
||||
include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml
|
||||
vars:
|
||||
trusted_file_path: "{{ trusted_file.stdout }}"
|
||||
|
||||
Loading…
Reference in new issue