ansible-collections / ansible.netcommon

Ansible Network Collection for Common Code
GNU General Public License v3.0
145 stars 104 forks source link

[ansible-pylibssh] Privilege escalation not working for linux host #165

Open ganeshrn opened 4 years ago

ganeshrn commented 4 years ago
SUMMARY
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
Privilege escalation not working for Linux host using libssh transport
CONFIGURATION

[persistent_connection]
connect_timeout = 100
command_timeout = 100
ssh_type = libssh
OS / ENVIRONMENT
STEPS TO REPRODUCE
- hosts: fedora
  gather_facts: no
  connection: ansible.netcommon.libssh

  tasks:
  - name: run commands
    command:
      cmd: "{{ item }}"
    loop:
    - "ls -al"
    become: true
    register: result
EXPECTED RESULTS
ACTUAL RESULTS
Privilege escalation fails
webknjaz commented 4 years ago

Ref: https://github.com/ansible/pylibssh/issues/16