cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem doing playbook using ansible-galaxy oneagent automation

AguinagaCSI
Helper

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: 

 

AguinagaCSI_0-1643718373912.png

 

Here is my playbook: 

 

AguinagaCSI_1-1643718454794.png

 

 Here is my ansible.cfg: 

 

AguinagaCSI_2-1643718499506.png

 

Here is my inventory: 

 

first part are global vars: 

AguinagaCSI_3-1643718620948.png

Second part are for Linux targets: 

 

AguinagaCSI_4-1643718756926.png

 

Last part is for Windows targets: 

 

AguinagaCSI_5-1643718825159.png

 

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! 

 

 

 

 

 

1 REPLY 1

AguinagaCSI
Helper

The problem is on local deployment. When I use remote I can finish without errors. 

Featured Posts