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 use this galaxy role from ansible-core 2.13.4? #49

Open
rgl opened this issue Sep 18, 2022 · 1 comment
Open

How to use this galaxy role from ansible-core 2.13.4? #49

rgl opened this issue Sep 18, 2022 · 1 comment

Comments

@rgl
Copy link

rgl commented Sep 18, 2022

At https://github.com/rgl/my-openwrt-ansible-playbooks I'm trying to use this role with ansible-core 2.13.4, but its failing:

$ ./ansible-playbook.sh --limit=openwrt lab.yml
TASK [Gathering Facts] *********************************************************
fatal: [openwrt]: FAILED! => changed=false 
  ansible_facts: {}
  failed_modules:
    ansible.legacy.setup:
      ansible_facts:
        discovered_interpreter_python: /usr/bin/python
      failed: true
      module_stderr: |-
        /bin/sh: /usr/bin/python: not found
      module_stdout: ''
      msg: |-
        The module failed to execute correctly, you probably need to set the interpreter.
        See stdout/stderr for the exact error
      rc: 127
      warnings:
      - No python interpreters found for host openwrt (tried ['python3.10', 'python3.9', 'python3.8', 'python3.7', 'python3.6', 'python3.5', '/usr/bin/python3', '/usr/libexec/platform-python', 'python2.7', '/usr/bin/python', 'python'])
  msg: |-
    The following modules failed to execute: ansible.legacy.setup

I can see there was some issues (#25 and #31) about ansible-core, but for some reason they do not seem to work for me. Can you please help?

@florian-asche
Copy link

You have to use the groupname openwrt. But i suggest to @gekmihesg that it would be cool to have this as an variable or multiple pattern that match.

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