Skip to content

Instantly share code, notes, and snippets.

@oskar456
Last active October 18, 2020 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oskar456/2c4c2bee3ce9c2c9dd5f43c2e743a37f to your computer and use it in GitHub Desktop.
Save oskar456/2c4c2bee3ce9c2c9dd5f43c2e743a37f to your computer and use it in GitHub Desktop.
Ansible bug with datetime in data
---
data_1:
- id: 1
key: hello
- id: 2
key: world
data_2:
- id: 1
key: hello
- id: 2
key: 2020-10-18
...
---
- hosts: localhost
become: no
vars_files: data.yaml
tasks:
- debug:
var: item.id
with_items: "{{ data_1 }}"
- debug:
var: item.id
with_items: "{{ data_2 }}"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment