Skip to content

ansible_sudo_pass[word] doesn't work in 2.8 #62042

@richlv

Description

@richlv
SUMMARY

ansible_sudo_pass and ansible_sudo_password are not working anymore in Ansible 2.8.

Tested with 2.8.1 and 2.8.4.

Setting ansible_become_password works.

Checking all the porting guides at https://docs.ansible.com/ansible/latest/porting_guides/porting_guides.html, couldn't find any that would mention these variables being removed.

Does not seem to be related to #11500.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

core

ANSIBLE VERSION
ansible 2.8.4
  config file = /opt/ansible/config/ansible-config.cfg
  configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/venv-ansible/lib/python2.7/site-packages/ansible
  executable location = /opt/venv-ansible/bin/ansible
  python version = 2.7.16 (default, May 20 2019, 06:24:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]
OS / ENVIRONMENT

RHEL6

STEPS TO REPRODUCE

Have a target system where sudo password is required.
Set ansible_sudo_pass or ansible_sudo_pass.

EXPECTED RESULTS

Sudo (become) operations work.

ACTUAL RESULTS
"msg": "Incorrect sudo password"

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.8This issue/PR affects Ansible v2.8bugThis issue/PR relates to a bug.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions