Ansible date compare

312 views
Skip to first unread message

ns27...@gmail.com

unread,
Feb 6, 2017, 9:41:47 AM2/6/17
to Ansible Project
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 

Andy Magana

unread,
Apr 29, 2019, 6:31:12 PM4/29/19
to Ansible Project
Hi There,

Did you have a solution I am looking for something similar.
Reply all
Reply to author
Forward
0 new messages