geerlingguy / geerlingguy/ansible-for-devops

Page 35 - Ansible -m package can't tell which package manager to use

Open
#422 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.9k
Forks
3.8k
PR merge metrics
No merged PRs in 30d

Description

This could be an issue with my Ansible version (I'm using 2.6.0)

When i run the following command in chapter 3, page 35 (top of the page

ansible app -b -m package -a "name=git state=present"

I get the following.
192.168.60.4 | FAILED! => {
"changed": false,
"msg": "Could not detect which package manager to use. Try gathering facts or setting the \"use\" option."
}
192.168.60.5 | FAILED! => {
"changed": false,
"msg": "Could not detect which package manager to use. Try gathering facts or setting the \"use\" option."
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the command at chapter 3, page 35 and reproduce it with Ansible 2.6.0 using the reported hosts. Check whether gathering facts or setting the package module's use option resolves the failure, then update the page so the command has a verified resolution or clearly documents the required setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.