Hi.
I am new to Ansible and facing some issues with date compare .
Scnerio :-
I have create e2 instances using ansible and i am able to retrieve the launch time of EC2.
- name: launch time and date of EC2
debug:
var: “{{instance_date}}”
with_items: “{{ ec2_facts.instances}}”
Issue i am having is is how do i do math operation of instance_date with ansible_date_time.iso8601_micro and find the difference .
Any help is appreciated .
Regards,
NS