01 Feb 2022 12:38 PM
Hello I'm stucked in filling a playbook for installation at my lab. Can someone help me?
Just to describe my infra. It has some guest VMs in Linux in my host plus one Windows 10 laptop.
I'm using ansible-galaxy's oneagent collection with python and ansible dependencies fulfilled.
First this is my playbook. Please note commented lines was my attempts to solve.
The error is occurring here in this task:
Here is my playbook:
Here is my ansible.cfg:
Here is my inventory:
first part are global vars:
Second part are for Linux targets:
Last part is for Windows targets:
Let me translate this error:
fatal: [192.168.129.200 -> localhost]: FAILED! => {"changed": false, "module_stderr": "Sinto muito, tente novamente.\n[sudo via ansible, key=lukrgwscxuzftewgvjodedwyxwcjjqes] password:\nsudo: nenhuma senha foi fornecida\nsudo: 1 tentativa de senha incorreta\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
It is complaining about wrong password or no password is passaed. It is strange because user vagrant is present in all linux hosts. I checked it out and all passwords are the same. I tried to use root user and password too and I cannot pass this task ahead.
Could you saw something wrong on it? Can you share your github playbook too?
Thanxx guys!
01 Feb 2022 01:45 PM
The problem is on local deployment. When I use remote I can finish without errors.