I am trying to run the following playbook
.
.
.
tasks:
- name: Install python and build dependencies
yum: pkg={{ item }} state=installed
with_items:
- docker-latest
- docker
- docker-python
- python-docker-py
.
.
.
but this what I got:
failed: [myVM] (item=['docker-latest', 'docker', 'docker-python', 'python-docker-py'])
=> {"changed": false,
"failed": true,
"item": ["docker-latest",
"docker",
"docker-python",
"python-docker-py"],
"msg": "No package matching 'docker-latest' found available, installed or updated",
"rc": 126,
"results": ["No package matching 'docker-latest' found available, installed or updated"]
}
My host OS is CentOS Linux release 7.9.2009.
yum search docker-latest? I seems that the package is not available on the target system. Maybe you need to add the docker repositories ? docs.docker.com/engine/install/centosyum search docker-latest Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile Warning: No matches found for: docker-latest No matches foundthe same output even after adding the docker repo