Ansible error: The error was: 'dict object' has no attribute 'pkg_mgr'
Hi, everyone:
I'm newbie with Ansible and their "Playbooks".
I try to solve some issues on a RHEL 8 through a "playbook", but I get this error:
The error was: 'dict object' has no attribute 'pkg_mgr'
Any clue will be appreciated.
Thank you,
JoséMi
user@DTK27-POR ~ % ansible-playbook -i .ansible/inventory/static-ini-inventory Downloads/www-playbook1-1639731408574.yml
PLAY [update vulnerable packages] **********************************************************************************************************
TASK [check for update] ********************************************************************************************************************
fatal: [web.serverxxxx.com]: FAILED! =>
msg: |-
The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'pkg_mgr'
The error appears to be in '/Users/user/Downloads/www-playbook1-1639731408574.yml': line 48, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: check for update
^ here
PLAY RECAP *********************************************************************************************************************************
web.serverxxxx.com : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
user@DTK27-POR ~ %