Skip to content
Discussion options

You must be logged in to vote

The geerlingguy/rockylinux8 Vagrant box uses Rocky Linux 8, which defaults to Python 3.6.

Ansible 2.17+ (and generally 2.14+) dropped support for Python 3.6 on the controller side and requires Python 3.8+.
When you run modern Ansible against this box, it fails with MODULE FAILURE because it cannot execute modules (like dnf) using the guest's default Python 3.6.

You have two options to fix this. Option B is generally recommended for longevity.

Option A: Downgrade Ansible (Keep Rocky 8)
If you must use the geerlingguy/rockylinux8 box exactly as written in older editions of the book, you must use an older version of Ansible that still supports Python 3.6.

Create a Virtual Environment on your…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isthatpratham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants