Skip to content

Unkonwn errors if tried to run main.yml #323

@franz134

Description

@franz134

Hey,
I'm totally new to Linux. I've installed Debian 11 on an old PC and tried this project.
In "inventory.ini" commented the upper line, and uncommented the line with "connect_local" and in "config.yml" I just changed the pihole pw (it's correct that the pw stands in "", right?).:

:~/internet-pi$ ansible-playbook main.yml

PLAY [internet_pi] ***************************************************
TASK [Gathering Facts] **********************************************
fatal: [127.0.0.1]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "failed": true, "module_stderr": "sudo: Ein Passwort ist notwendig\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}

PLAY RECAP *********************************************************
127.0.0.1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

(Ein Passwort ist notwendig = apassword is necessary)

and if I tried to run this via putty/ssh from another PC (in inventory.ini I filled in the (static) IP address of the PC and switched the commented lines:

:~/internet-pi$ ansible-playbook main.yml

PLAY [internet_pi] **************************************************************

TASK [Gathering Facts] *********************************************************
fatal: [192.168.178.157]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: pi@192.168.178.157: Permission denied (publickey,password).", "unreachable": true}

PLAY RECAP ********************************************************************
192.168.178.157 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

Sorry but I don't understand the errors and hope someone could help.
My goal is to integrate the airsensor, parts already ordered.
Greetings from Germany.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions