this is an example that i want… in this task i set in a pretask the variable INSTALL_TIME: “{{ ansible_date_time }}”
i whant to use this variable in other role (Check_logs)
how can i do that?
-
name: ‘Deploy’
hosts: APP
pre_tasks: -
set_fact:
INSTALL_TIME: “{{ ansible_date_time }}”
roles: -
role: install_block
-
name: ‘[Global] Check Logs’
hosts: LOG
become: false
roles:
- role: check_logs