winrm or requests is not installed: No module named winrm

41 views
Skip to first unread message

egoibe

unread,
Jul 5, 2023, 1:24:02 PM7/5/23
to Ansible Project
Hello, 

I want to deploy in  a RHEL server the following playbook, the Ansible server is also a RHEL one.  There  is no Windows Server..

---
- name: Install and configure nimsoft-robot
  hosts: 172.17.61.76
  become: true
  tasks:
    - name: Download nimsoft-robot.x86_64.rpm
      shell:
        cmd: wget https://uv1992.emea.eu.int/pub/nimbus/Linux/nimsoft-robot.x86_64.rpm
        dest: /opt/nimsoft/nimsoft-robot.x86_64.rpm


    - name: Download nms-robot-vars.cfg
      shell:
        cmd: wget https://uv1992.emea.eu.int/pub/nimbus/Linux/nms-robot-vars.cfg
        dest: /opt/nms-robot-vars.cfg



    - name: Install nimsoft-robot
      shell:
        cmd: rpm -i /opt/nimsoft-robot.x86_64.rpm
        executable: present

    - name: Configure nimsoft-robot
      shell: bash /opt/nimsoft/install/RobotConfigurer.sh
      args:
        chdir: /opt/nimsoft/install
        executable: present

    - name: Restart nimbus service
      service:
        name: nimbus
        state: restarted


[root@server2 playbooks]# ansible-playbook --check nimbus_installation.yml PLAY [Install and configure nimsoft-robot] *************************************************************************** TASK [Gathering Facts] ***************************************************************************************************fatal: [111.11.111.11]: FAILED! => {"msg": "winrm or requests is not installed: No module named winrm"} PLAY RECAP *********************************************************************************************************** 111.11.111.11 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Why is appearing the the error : {"msg": "winrm or requests is not installed: No module named winrm"}

I would be very grateful if someone could help me to solve this issue where I am completely lost.

Thanks in advance

Regards

Dick Visser

unread,
Jul 5, 2023, 3:03:07 PM7/5/23
to ansible...@googlegroups.com
Hii, sounds like your inventory or config may list winrm as connection method.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0024100a-5829-46e6-9ef3-b2dcf11893a9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages