Fix multiline yaml

This commit is contained in:
Magnus Andersson 2024-01-15 15:45:19 +01:00
parent 15b61c1154
commit 2a4171aec8
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -17,9 +17,9 @@
state: present
name: kube{{ item }}-matrix-test-sunet-se-port
network: public
security_groups: |
{% set secgroupallegress=secgroups.security_groups|selectattr('name', 'equalto', 'allegress')| first -%}
security_groups: |-
{%- set secgroupallegress=secgroups.security_groups|selectattr('name', 'equalto', 'allegress')| first -%}
{% set secgroupkubenode=secgroups.security_groups|selectattr('name', 'equalto', 'kubenode')| first -%}
{% set secgroupssh=secgroups.security_groups|selectattr('name', 'equalto', 'ssh-from-jumphost')| first -%}
{{ secgroupallegress['id'] }},{{secgroupkubenode['id']}},{{secgroupssh['id']}}"
{{ secgroupallegress['id'] }},{{secgroupkubenode['id']}},{{secgroupssh['id'] -}}
loop: "{{ range(1,4)|list }}"