Ansible 1.4 not allowing sudo_user to be set by a variable...

Is there a change I missed in ansible 1.4 that would break the following:

I should probably clarify that my sysadmin variable is defined in the: group_vars/all.yml file… unless somehow that’s not getting picked up now…
/me goes to investigate further

It appears that manually sourcing my old variable file has fixed this for now, as follows:

  • name: Initialize all SUPPORT servers
    vars_files:
  • group_vars/all.yml
    hosts: all
    sudo: yes
    sudo_user: “{{sysadmin}}”
    roles:
  • common

I’d love some suggestions or links to what may have changed to prevent the group_vars/all.yml from loading when hosts: all is set, but for now this works at least with minimal impact.

Please file a ticket and we’ll see if we can reproduce this.

– Michael

Btw the inventory variable is ansible_sudo_user and has existed for a while, what you have should technically work but is a much more manual approach. Check to see you did not define ansible_sudo_user elsewhere.

– Michael