Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ping windows host without password #82983

Closed
1 task done
vijethayerigeri opened this issue Apr 4, 2024 · 4 comments
Closed
1 task done

Unable to ping windows host without password #82983

vijethayerigeri opened this issue Apr 4, 2024 · 4 comments
Labels
affects_2.12 bug This issue/PR relates to a bug. module This issue/PR relates to a module.

Comments

@vijethayerigeri
Copy link

vijethayerigeri commented Apr 4, 2024

Summary

[win:vars]
ansible_user= administrator
ansible_port=5986
ansible_connection=winrm

and im not adding ansible_password= as my system dont need password to login they autologin with username as administrator.

but im getting below output: 
<IP> | UNREACHABLE! => {
    "changed": false,
    "msg": "plaintext: auth method plaintext requires a password",
    "unreachable": true
}

How to make this work

Issue Type

Bug Report

Component Name

apt

Ansible Version

ansible [core 2.12.10]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/prashant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/prashant/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True

Configuration

BECOME:
======

CACHE:
=====

CALLBACK:
========

CLICONF:
=======

CONNECTION:
==========

HTTPAPI:
=======

INVENTORY:
=========

LOOKUP:
======

NETCONF:
=======

SHELL:
=====

VARS:
====

OS / Environment

ubuntu

Steps to Reproduce

ansible all -i hosts -m win_ping

Expected Results

<IP> | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}

Actual Results

<IP> | UNREACHABLE! => {
    "changed": false,
    "msg": "plaintext: auth method plaintext requires a password",
    "unreachable": true
}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibot
Copy link
Contributor

ansibot commented Apr 4, 2024

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the component bot command.

@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. affects_2.12 module This issue/PR relates to a module. labels Apr 4, 2024
@ansibot
Copy link
Contributor

ansibot commented Apr 4, 2024

@vijethayerigeri ansible-core 2.12 is not supported and no longer receives bug fixes. Please test against one of the supported versions of ansible-core, preferably the most recent one, to see whether the bug has been fixed.

click here for bot help

@bcoca
Copy link
Member

bcoca commented Apr 4, 2024

the ping module is not an ICMP ping, but a test of Ansible being able to execute modules on the remote, so part of the test is to actually login to the system.

@nitzmahone nitzmahone removed the needs_triage Needs a first human triage before being processed. label Apr 4, 2024
@nitzmahone
Copy link
Member

Hi!

Thanks very much for your interest in Ansible. It means a lot to us.

This appears to be a user question, and we'd like to direct these kinds of things to either the mailing list or the IRC channel.

See this page for a complete and up to date list of communication channels and their purposes:

Because this project is very active, we're unlikely to see comments made on closed tickets and we lock them after some time.
If don't you think this particular issue is resolved, you should still stop by there first, we'd appreciate it.
This allows us to keep the issue tracker for bugs, pull requests, RFEs and the like.

Thank you once again and we look forward to seeing you on the list or IRC. Thanks!

@nitzmahone nitzmahone closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
@ansible ansible locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.12 bug This issue/PR relates to a bug. module This issue/PR relates to a module.
Projects
None yet
Development

No branches or pull requests

4 participants