Refactor all_services to remove name attribute
This commit is contained in:
parent
6f9f888478
commit
1d14ac888e
16 changed files with 42 additions and 71 deletions
4
Makefile
4
Makefile
|
@ -10,8 +10,8 @@ PWD := $(shell pwd)
|
|||
.FORCE:
|
||||
|
||||
./inventory/group_vars/all/all_services.yml: .FORCE
|
||||
tofu output --json \
|
||||
| yq -y '{all_services: with_entries(.value |= .value).services | to_entries | map(.value)}' \
|
||||
tofu output --json services \
|
||||
| yq -y '{all_services: .}' \
|
||||
> ./inventory/group_vars/all/all_services.yml
|
||||
|
||||
./inventory/group_vars/all/opentofu.yml: .FORCE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue