Skip to content

How do I specify a custom port of an existing pihole instance? #122

@mjsan

Description

@mjsan

Hello,

As I already have pihole up and running, I've specified the below in config.yml

pihole_enable: false

inventory.ini looks like:

[internet_pi]
10.0.0.25 ansible_user=pi

But running $ansible-playbook main.yml fails with:

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

TASK [Gathering Facts] ***********************************************************************************************************************************************************
fatal: [10.0.0.25]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.0.25 port 22: Connection refused", "unreachable": true}

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

Is this because ssh is listening to a custom port on the server running pihole? If so, how can I specify this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions