fix: Add playbook scoped variable

This commit is contained in:
Danny Bessems 2023-08-24 17:41:35 +02:00
parent bb58e287b7
commit 4c1f1fce5e
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,9 @@
- hosts: 127.0.0.1
connection: local
gather_facts: true
vars:
# Needed by some templating in various tasks
_newline: "\n"
vars_files:
- defaults.yml
- metacluster.yml

View File

@ -109,7 +109,6 @@
state: present
kubeconfig: "{{ kubeconfig.path }}"
vars:
_newline: "\n"
_template:
name: "{{ item.name }}"
namespace: "{{ item.namespace }}"

View File

@ -34,7 +34,6 @@
vars:
manifest: "{{ item.0 }}"
src: "{{ item.1.src }}"
_newline: "\n"
_template: "{{ item.1._template }}"
loop: "{{ query('ansible.builtin.subelements', query('ansible.builtin.dict', downstream_components), 'value.extra_manifests') }}"
loop_control: