[all:vars] ansible_become_method in host inventory file

I developed some playbooks using version 2.7 (I think). Last week I went to run them on what is now 2.9.2, and it seems to fail to pick up the become method from the inventory file like it used to, instead defaulting to “sudo”.

This is in my host inventory file:

[all:vars]

ansible_become_method=ksu

Does anyone know if this is an expected change in behavior and if so, what changed?

I looked through the change logs but saw nothing conclusive, and the documentation still lists the variables as valid in inventory.

–steve