Fix checkout-treasuremap-ref playbook

Ansible treats the use of jinja2 expressions in
the 'when' clause as unsafe.

Change-Id: Id0122a6d4a113fbdc3b534fb21e3f3b6ca64e19b
Signed-off-by: Sergiy Markin <smarkin@mirantis.com>
This commit is contained in:
Sergiy Markin
2025-08-01 22:10:37 +00:00
parent 2ec84138df
commit f5493580be

View File

@@ -11,7 +11,7 @@
# limitations under the License. # limitations under the License.
--- ---
- hosts: all - hosts: primary
tasks: tasks:
- name: Checkout treasuremap ref - name: Checkout treasuremap ref
git: git:
@@ -23,4 +23,4 @@
when: when:
- treasuremap_ref is defined - treasuremap_ref is defined
- treasuremap_ref|length > 0 - treasuremap_ref|length > 0
- treasuremap_ref != "{{ zuul.projects['opendev.org/airship/treasuremap'].checkout }}" - treasuremap_ref != "v1.9"