Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to dump facts using the setup module #52

Open
varac opened this issue Oct 14, 2022 · 1 comment
Open

How to dump facts using the setup module #52

varac opened this issue Oct 14, 2022 · 1 comment

Comments

@varac
Copy link

varac commented Oct 14, 2022

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.

@gekmihesg
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants