Skip to content

Commit

Permalink
enables sorting by numbering directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Dec 31, 2024
1 parent 039dbc9 commit 2af4b19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
# badger badger badger mushroom mushrooooom...
services:
{% for file in compose_files %}
{% for file in compose_files | sort(attribute='src') %}
{% set service_name = file.src | dirname | basename %}
{% if service_name not in (disabled_compose_files | default([])) %}
{{ lookup('template', file.src)
| regex_replace('^(---|services:)\s*\n*', '')
Expand Down

0 comments on commit 2af4b19

Please sign in to comment.