Use sorted list for included files vs random provided by with_fileglob
.
- name: Include tasks
include_tasks: "{{item}}"
loop: "{{ query('fileglob', 'tasks/*.yaml') | sort }}"
Use sorted list for included files vs random provided by with_fileglob
.
- name: Include tasks
include_tasks: "{{item}}"
loop: "{{ query('fileglob', 'tasks/*.yaml') | sort }}"