Hi I am new to Ansible .
I am some issues working with dates .I want to get the difference between
two dates in seconds or minutes .
I created two ec2 instance and was able to retrieve the launch times using
below
name: launch time and date of EVC and ansible date
debug:
var: item.launch_time
with_items: "{{ ec2_facts.instances }}"
also i was able to get the ansible date using .
- name: launch time and date of EVC and ansible date
debug:
date: ansible_date_time.iso8601_micro.date
What i am not able to do is store these variables in a date variable and
then subtract them and get this difference .
Could you guys help me ?
Regards,
NS
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6b47a58a-42ed-4369-a2e4-4c439ff5bbef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.