This is my ansible setup hierarchy:
symfony:
env: prod
owner: narayan
cache_owner: files
cache_group: files
deploy_base: /opt/symfony
keep_count: 2
My yaml file:
deploy.yml:
# ...
- name: roll forward latest release
symfony_preload: version="{{ symfony.deploy_version }}" deploy_base="{{ symfony.deploy_base }}"
I'm executing the playbook in the following way:
/usr/bin/ansible-playbook deploy.yml -i inventory/hosts \
-e deploy_hosts=stg-web \
-e symfony.deploy_version="$UPSTREAM_BUILD_NUMBER" \
-e symfony.env="stg"
But ansible isn't loading variables properly. Why?