gekmihesg/ansible-openwrt

How to dump facts using the setup module

varac opened this issue · 1 comments

varac commented

I'd like to dump facts from an openwrt (19.07.8) device, but the setup module complains about a missing python interpreter:

❯ ansible -m setup --tree facts box
box | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": false,
    "module_stderr": "Shared connection to 192.168.8.1 closed.\r\n",
    "module_stdout": "/bin/sh: /usr/bin/python: not found\r\n",
    "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error",
    "rc": 127
}

I like that your role doesn't need python installed, but it there any way how I can achieve this ?

Ansible 2.13.5, latest master for ansible-openwrt as of today.