`set_fact: release_tag=v2` runs, but later tasks still see `v1`
IntermediateTroubleshootingVariables, Facts and Precedence Problems
Answer
Likely causes → release_tag was also passed with -e (or comes from an AWX survey or extra vars). Extra vars have the highest precedence and override set_fact, register and everything else.
Diagnose → Check the job command line and the AWX extra vars or survey. debug: var=release_tag straight after the set_fact still shows v1.
Fix → Use a different name for the computed value (release_tag_effective), or stop passing the key as an extra var.
Prevent → Reserve extra vars for true run-time inputs, and never reuse those names for internal facts.
More on Variables, Facts and Precedence Problems
Variables in `group_vars/webservers.yml` are silently ignoredBeginnerYou set `nginx_port: 8443` in inventory `group_vars`, but the role still uses `80`Intermediate`'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'` when templating `hostvars['db01']`Intermediate`'ansible_eth0' is undefined` on new cloud instancesBeginnerFacts like `ansible_hostname` became undefined after someone changed `ansible.cfg`Intermediate`web01` is in both `prod` and `eu` groups, and `ntp_server` has a different value on every run you checkAdvanced