-
-
Save VerosK/16106694f70f2fc61ef44b09c40c1ed4 to your computer and use it in GitHub Desktop.
Ansible bug with datetime in data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
data_1: | |
- id: 1 | |
key: hello | |
- id: 2 | |
key: world | |
data_2: | |
- id: 1 | |
key: 2020-10-18 | |
- id: 2 | |
key: 2020-10-19 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
become: no | |
vars_files: data.yml | |
tasks: | |
- debug: | |
var: item.id | |
loop: "{{ data_1 }}" | |
- debug: | |
var: foo.id | |
loop: "{{ data_2 }}" | |
loop_control: | |
loop_var: foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment