Open zamantech opened 1 year ago
Greetings!
First of all - thank you for supplying the information!
The error message you are supplying is produced by the Ansible Module you are calling.
Semaphore has no impact on how an Ansible Module behaves.
Semaphore 'only' starts ansible-playbook
and that in turn executes the Module.
As it is not clear what command you ran directly - please make sure this specific Ansible Playbook works when ran manually via shell. (in the same environment/context)
If it also does not work when ran manually - please take the issue to community.routeros
Also: As you are running a manual installation of Semaphore - make sure to read the new documentation regarding it: Manual Installation
For sure i try run directly,and was there is no issue so i asked here inside the same system that running semaphore
ansible-playbook -i mik.hosts.ini ./extended_query-playbook.yml --ask-vault-password --skip-tags test,debuging --diff
Vault password:
PLAY [RouterOS test with API] **************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Extended query example - ".id,address,network" where address is not 192.168.255.10/24 or is 10.20.36.20/24] ***
ok: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
@zamantech Your initial post shows the version 1.1.0
for the collection in use!
community.routeros 1.1.0
That version is from JAN 4 2021!
The extended_query
was added last year (https://github.com/ansible-collections/community.routeros/commit/d57de117f5d71ee7dbfdd59926ddc41cab02594f) and merged MAY 25 2022
Please update your collections. That may fix you issue (no Semaphore issue)
Thank you for your enlightenment,
ansible==8.2.0
ansible-base==2.10.8
ansible-core==2.15.2
ansible-pylibssh==1.1.0
pip install -U -r req.txt
fixed the problem
but why semaphore choose routeros of /usr/lib/python3/dist-packages/ansible_collections
instead of /root/.ansible/collections/ansible_collections
that is newer? and what about semaphore choose the newest?@zamantech As I mentioned - Semaphore is not handling this logic. It is 'just' executing 'ansible-playbook' which handles this logic however it is intended/designed by Ansible. Please close this issue-ticket if your problem was resolved. Thanks.
the error
when run the command directly there is no issue but with semaphore shown as
extended_query
not define :docs
source: https://docs.ansible.com/ansible/latest/collections/community/routeros/api_module.html
playbook
info