This is an annoying but sadly necessary addition for the playbook run to
work on first pass. It resolves this error during runtime:
TASK[jwflory.teleirc:addnodejsthird-partyrepository]**********************************************************************************************************************************************************************************fatal:[telegram-irc.fedorainfracloud.org]:FAILED!=>{"changed":false,"cmd":"dnf install -y python2-dnf","msg":"Could not import the dnf python module using /usr/bin/python (2.7.16 (default, Mar 5 2019, 09:07:48) [GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)]). Please install `python2-dnf` package or ensure you have specified the correct ansible_python_interpreter.","rc":1,"results":[],"stderr":"Failed to synchronize cache for repo 'updates'\nIgnoring repositories: updates\nError: Unable to find a match\n","stderr_lines":["Failed to synchronize cache for repo 'updates'","Ignoring repositories: updates","Error: Unable to find a match"],"stdout":"Fedora 30 - x86_64 - Updates 3.2 kB/s | 252 B 00:00 \nLast metadata expiration check: 0:01:32 ago on Fri 30 Aug 2019 12:20:01 AM UTC.\nNo match for argument: python2-dnf\n","stdout_lines":["Fedora 30 - x86_64 - Updates 3.2 kB/s | 252 B 00:00 ","Last metadata expiration check: 0:01:32 ago on Fri 30 Aug 2019 12:20:01 AM UTC.","No match for argument: python2-dnf"]}
This is an annoying but sadly necessary addition for the playbook run to
work on first pass. It resolves this error during runtime:
For more context, see ansible/ansible#45852.