Skip to content

Commit

Permalink
added docker to generic
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Nov 27, 2024
1 parent 6e7dd34 commit c410f51
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions generic/setup_docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- name: Install and configure Docker on Ubuntu

Check failure on line 2 in generic/setup_docker.yml

View workflow job for this annotation

GitHub Actions / build

syntax-check[specific]

no module/action detected in task.
become: true

- name: Update and upgrade all packages to the latest version
ansible.builtin.apt:
update_cache: true
Expand Down Expand Up @@ -34,7 +37,7 @@
ansible.builtin.apt_repository:
repo: >-
deb [arch={{ arch_mapping[ansible_architecture] | default(ansible_architecture) }}
signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]
signed-by=/etc/apt/keyrings/docker.gpg]
https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable
filename: docker
state: present
Expand All @@ -47,7 +50,7 @@
name: "{{ item }}"
state: present
update_cache: true
loop:
with_items:
- docker-ce
- docker-ce-cli
- containerd.io
Expand All @@ -70,6 +73,6 @@
name: "{{ item }}"
enabled: true
state: started
loop:
with_items:
- docker.service
- containerd.service
- containerd.service

0 comments on commit c410f51

Please sign in to comment.