diff --git a/ci-templates/core.yml b/ci-templates/core.yml
index fb8a8b32b37e0e175652be19bbde0cc9da1860ba..e1f6518a1b083ff7e1a1f68e59940bca7eca691b 100644
--- a/ci-templates/core.yml
+++ b/ci-templates/core.yml
@@ -15,8 +15,9 @@ services:
   - name: tecnalia-docker-dev.artifact.tecnalia.com/docker:dind
     alias: docker
 
-.lfs_setup_template: &lfs_setup_definition # Hidden key that defines an anchor
-  AFTER_SETUP_UPSTREAM_WORKSPACE: "bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
+.lfs_setup_template:
+  variables:
+    AFTER_SETUP_UPSTREAM_WORKSPACE: "bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
                   apt install -qq -y git-lfs; \
                   git config --global credential.helper store; \
                   echo https://$ARTIFACT_CI_USER:$ARTIFACT_CI_TOKEN@artifact.tecnalia.com > ~/.git-credentials ;\