Skip to content

Commit 942077d

Browse files
committed
fix ansible apt install package
the 'docker' package is the desktop tray application and running the playbook fails at installing that one. 'docker.io' seems to be the package we need and it does work on Ubuntu 22.04 Server
1 parent 5bcb9a9 commit 942077d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapter_11_ansible.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ for.
322322
323323
- name: Install docker #<1>
324324
ansible.builtin.apt: #<2>
325-
name: docker #<3>
325+
name: docker.io #<3>
326326
state: latest
327327
update_cache: true
328328
become: true
@@ -347,7 +347,7 @@ for.
347347
around the `apt` Debian & Ubuntu package management tool.
348348

349349
<3> Each module then provides a bunch of parameters which control how it works.
350-
Here we specify the `name` of the package we want to install ("docker")
350+
Here we specify the `name` of the package we want to install ("docker.io")
351351
and tell it update its cache first, which is required on a fresh server.
352352

353353
Most Ansible modules have pretty good documentation,
@@ -487,7 +487,7 @@ In Ansible config, it looks like this:
487487
tasks:
488488
- name: Install docker
489489
ansible.builtin.apt:
490-
name: docker
490+
name: docker.io
491491
state: latest
492492
become: true
493493

0 commit comments

Comments
 (0)