There are no default constructors in Go, but you can declare methods for any type. You could make it a…
--- - hosts: localhost become: no gather_facts: yes tasks: - name: Display the current timestamp in YYYY-MM-DD debug: var=ansible_date_time.date
--- - hosts: localhost become: no gather_facts: yes tasks: - name: Display the current timestamp in YYYY-MM-DD debug: var=ansible_date_time.date