gekmihesg/ansible-openwrt

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

Opened this issue · 1 comments

rgl commented

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?

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.