Configuration Management Tool

The module ping was not found in configured module paths, core modules are missing

Before proceeding to resolve this issue, let’s define what a module is. A module is a reusable, standalone script that Ansible runs on your behalf, either locally or remotely. Modules interact with your local machine, an API, or a remote system to perform specific tasks like changing a database password or spinning up a cloud instance. Here are some related guides: How to turn on Windows 10 Tamper Protection for Microsoft Defender, how to find and remove Malware with Microsoft Defender Offline,  how to get the Windows 10 Version 22H2 Update, and how to restore quarantined files in Microsoft Defender Antivirus.

Note: Ansible modules are categorized into various groups based on their functionality. There are hundreds of Ansible modules are available

FAILED! => {"msg": "The module ping was not found in configured module paths. Additionally,
 core modules are missing. If this is a checkout, run 'git pull --rebase' to correct this problem."
}

To resolve this error above, as you can see from the error message, “git pull –rebase” will help resolve this issue.

Why was this error prompted in the first place?

You may find that your pull request (PR) is out-of-date and needs to be rebased. This can happen for several reasons:

  • Files modified in your PR are in conflict with changes that have already been merged.
  • Your PR is old enough that significant changes to automated test infrastructure have occurred.

To update Ansible checkouts, use pull-with-rebase so any local changes are replayed, run the commands below

$ git pull --rebase
$ git submodule update --init --recursive

For more information, see the following link. This helped me resolve this issue. See this guide for more on git-pull–rebase. In order to avoid this error, it is best to install ansible using the PPA. See this link also for more information.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x